diff options
| author | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2025-03-14 23:33:56 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2025-03-14 23:33:56 +0100 |
| commit | e3c4bb2efa513973bc26949a8be62fbe66e31a4f (patch) | |
| tree | 75a46cbde3ec2d36cfd33bff63ae7c65d145c182 /astro.config.mjs | |
| parent | 54dab1e00b38693e96c801d0c5a020693a35bbda (diff) | |
Implement new page layouts for Home, Contact, Portfolio, and Trajectory; update header and footer for multilingual support
Diffstat (limited to 'astro.config.mjs')
| -rw-r--r-- | astro.config.mjs | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/astro.config.mjs b/astro.config.mjs index 843c997..12285a1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -2,16 +2,30 @@ import sitemap from '@astrojs/sitemap'; import { defineConfig } from 'astro/config'; import mdx from '@astrojs/mdx'; +import { DEFAULT_LANGUAGE, LANGUAGE_CODES } from './src/i18n'; export default defineConfig({ compressHTML: true, site: "https://www.costas.dev", - integrations: [sitemap({ - priority: 0.5, - changefreq: 'weekly' - }), mdx()], + i18n: { + defaultLocale: DEFAULT_LANGUAGE, + locales: LANGUAGE_CODES, + routing: { + prefixDefaultLocale: false, + fallbackType: 'redirect', + redirectToDefaultLocale: true + } + }, + integrations: [ + sitemap({ + priority: 0.5, + changefreq: 'weekly' + }), + mdx() + ], build: { assets: 'assets', inlineStylesheets: 'never', }, + scopedStyleStrategy: 'where' });
\ No newline at end of file |
