forked from performant-software/gbof-astro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
41 lines (39 loc) · 1004 Bytes
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { defineConfig } from 'astro/config';
import netlify from "@astrojs/netlify";
import mdx from "@astrojs/mdx";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import config from "./src/i18n/config";
import paraglide from '@inlang/paraglide-astro';
import react from "@astrojs/react";
// https://astro.build/config
export default defineConfig({
i18n: config.i18n,
output: "server",
adapter: netlify(),
integrations: [mdx(), tailwind(), sitemap(), react(), paraglide({
// recommended settings
project: "./project.inlang",
outdir: "./src/paraglide", //where your files should be
})],
vite: {
optimizeDeps: {
esbuildOptions: {
// Node.js global to browser globalThis
define: {
global: 'globalThis',
},
},
},
resolve: {
preserveSymlinks: true,
mainFields: [
'browser',
'module',
'main',
'jsnext:main',
'jsnext'
]
}
}
});