2024-09-14 12:18:30 -05:00
|
|
|
// @ts-check
|
2024-09-14 13:24:24 -05:00
|
|
|
|
2025-04-03 11:34:57 -05:00
|
|
|
import partytown from '@astrojs/partytown';
|
2024-09-14 13:24:24 -05:00
|
|
|
import react from '@astrojs/react';
|
2024-10-14 10:52:40 -05:00
|
|
|
import sitemap from '@astrojs/sitemap';
|
2025-01-14 19:22:41 -06:00
|
|
|
import { SUPPORTED_LOCALES } from '@blitzkit/i18n';
|
2025-04-03 12:53:54 -05:00
|
|
|
import playformInline from '@playform/inline';
|
2025-04-03 12:48:17 -05:00
|
|
|
import compressor from 'astro-compressor';
|
2024-09-14 12:18:30 -05:00
|
|
|
import { defineConfig } from 'astro/config';
|
|
|
|
|
|
2024-09-14 13:24:24 -05:00
|
|
|
export default defineConfig({
|
2024-12-26 14:36:48 -06:00
|
|
|
i18n: {
|
|
|
|
|
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 },
|
2024-10-18 10:50:03 -05:00
|
|
|
output: 'static',
|
2024-10-14 10:52:40 -05:00
|
|
|
site: 'https://blitzkit.app',
|
2024-10-18 10:52:23 -05:00
|
|
|
outDir: '../../dist/website',
|
2024-10-24 17:06:13 -05:00
|
|
|
prefetch: true,
|
2024-10-09 22:04:43 -05:00
|
|
|
|
2025-04-03 12:51:24 -05:00
|
|
|
integrations: [
|
|
|
|
|
react(),
|
|
|
|
|
sitemap(),
|
|
|
|
|
partytown(),
|
2025-04-05 22:02:26 -05:00
|
|
|
// playformCompress(),
|
2025-04-03 12:51:24 -05:00
|
|
|
compressor(),
|
2025-04-03 12:53:54 -05:00
|
|
|
playformInline(),
|
2025-04-03 12:51:24 -05:00
|
|
|
],
|
2024-10-07 19:13:30 -05:00
|
|
|
vite: {
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'.prisma/client/index-browser':
|
|
|
|
|
'../../node_modules/.prisma/client/index-browser.js',
|
|
|
|
|
},
|
|
|
|
|
},
|
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
|
|
|
});
|