🚀 Ready to vercel

This commit is contained in:
LittleSheep 2024-12-19 22:56:07 +08:00
parent 1bc50aecc5
commit 5f1f965292
3 changed files with 9 additions and 1 deletions

View File

@ -9,9 +9,12 @@ import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap' import sitemap from '@astrojs/sitemap'
import vercel from '@astrojs/vercel';
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
site: 'https://solsynth.dev', site: 'https://solsynth.dev',
integrations: [ integrations: [
tailwind(), tailwind(),
icon(), icon(),
@ -21,7 +24,9 @@ export default defineConfig({
i18n: { defaultLocale: 'en', locales: { en: 'en-US', 'zh-cn': 'zh-CN' } }, i18n: { defaultLocale: 'en', locales: { en: 'en-US', 'zh-cn': 'zh-CN' } },
}), }),
], ],
prefetch: true, prefetch: true,
i18n: { i18n: {
locales: ['en', 'zh-cn'], locales: ['en', 'zh-cn'],
defaultLocale: 'en', defaultLocale: 'en',
@ -30,4 +35,6 @@ export default defineConfig({
prefixDefaultLocale: false, prefixDefaultLocale: false,
}, },
}, },
})
adapter: vercel(),
})

BIN
bun.lockb

Binary file not shown.

View File

@ -12,6 +12,7 @@
"@astrojs/mdx": "^4.0.2", "@astrojs/mdx": "^4.0.2",
"@astrojs/sitemap": "^3.2.1", "@astrojs/sitemap": "^3.2.1",
"@astrojs/tailwind": "^5.1.3", "@astrojs/tailwind": "^5.1.3",
"@astrojs/vercel": "^8.0.1",
"@iconify-json/material-symbols": "^1.2.10", "@iconify-json/material-symbols": "^1.2.10",
"@iconify-json/simple-icons": "^1.2.16", "@iconify-json/simple-icons": "^1.2.16",
"astro": "^5.0.5", "astro": "^5.0.5",