2024-09-14 12:18:30 -05:00
|
|
|
// @ts-check
|
2024-09-14 13:24:24 -05:00
|
|
|
|
2025-04-22 00:50:14 -05:00
|
|
|
import partytown from '@astrojs/partytown';
|
|
|
|
|
import react from '@astrojs/react';
|
|
|
|
|
import sitemap from '@astrojs/sitemap';
|
|
|
|
|
import { SUPPORTED_LOCALES } from '@blitzkit/i18n';
|
|
|
|
|
import { defineConfig } from 'astro/config';
|
2024-09-14 12:18:30 -05:00
|
|
|
|
2024-09-14 13:24:24 -05:00
|
|
|
export default defineConfig({
|
2024-12-26 14:36:48 -06:00
|
|
|
i18n: {
|
2025-04-22 00:50:14 -05:00
|
|
|
defaultLocale: 'en',
|
2025-01-14 19:22:41 -06:00
|
|
|
locales: [...SUPPORTED_LOCALES],
|
2024-12-27 12:38:38 -06:00
|
|
|
routing: {
|
|
|
|
|
prefixDefaultLocale: false,
|
|
|
|
|
},
|
2024-12-26 14:36:48 -06:00
|
|
|
},
|
|
|
|
|
|
2024-10-09 22:04:43 -05:00
|
|
|
devToolbar: { enabled: false },
|
2025-04-22 00:50:14 -05:00
|
|
|
output: 'static',
|
|
|
|
|
site: 'https://blitzkit.app',
|
|
|
|
|
outDir: '../../dist/website',
|
2024-10-24 17:06:13 -05:00
|
|
|
prefetch: true,
|
2024-10-09 22:04:43 -05:00
|
|
|
|
2025-04-06 10:48:08 -05:00
|
|
|
integrations: [react(), sitemap(), partytown()],
|
2024-10-07 19:13:30 -05:00
|
|
|
vite: {
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
2025-04-22 00:50:14 -05:00
|
|
|
'.prisma/client/index-browser':
|
|
|
|
|
'../../node_modules/.prisma/client/index-browser.js',
|
2024-10-07 19:13:30 -05:00
|
|
|
},
|
|
|
|
|
},
|
2024-10-22 15:08:23 -05:00
|
|
|
ssr: {
|
|
|
|
|
noExternal: [/^d3.*$/, /^@nivo.*$/],
|
|
|
|
|
},
|
2024-10-07 19:13:30 -05:00
|
|
|
},
|
2024-09-14 13:24:24 -05:00
|
|
|
});
|