diff --git a/astro.config.mjs b/astro.config.mjs index 0844f88..52c2fe1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -9,9 +9,12 @@ import mdx from '@astrojs/mdx' import sitemap from '@astrojs/sitemap' +import vercel from '@astrojs/vercel'; + // https://astro.build/config export default defineConfig({ site: 'https://solsynth.dev', + integrations: [ tailwind(), icon(), @@ -21,7 +24,9 @@ export default defineConfig({ i18n: { defaultLocale: 'en', locales: { en: 'en-US', 'zh-cn': 'zh-CN' } }, }), ], + prefetch: true, + i18n: { locales: ['en', 'zh-cn'], defaultLocale: 'en', @@ -30,4 +35,6 @@ export default defineConfig({ prefixDefaultLocale: false, }, }, -}) + + adapter: vercel(), +}) \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index a770448..f821d0f 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 66db0d3..b9d1200 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "@astrojs/mdx": "^4.0.2", "@astrojs/sitemap": "^3.2.1", "@astrojs/tailwind": "^5.1.3", + "@astrojs/vercel": "^8.0.1", "@iconify-json/material-symbols": "^1.2.10", "@iconify-json/simple-icons": "^1.2.16", "astro": "^5.0.5",