File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export default defineConfig({
23
23
site : config . site . base_url ? config . site . base_url : "http://examplesite.com" ,
24
24
base : config . site . base_path ? config . site . base_path : "/" ,
25
25
trailingSlash : config . site . trailing_slash ? "always" : "ignore" ,
26
+ output : "static" ,
26
27
i18n : {
27
28
locales : filteredSupportedLang ,
28
29
defaultLocale : default_language ,
@@ -65,4 +66,13 @@ export default defineConfig({
65
66
} ,
66
67
extendDefaultPlugins : true ,
67
68
} ,
69
+ vite : {
70
+ build : {
71
+ sourcemap : false ,
72
+ minify : true ,
73
+ } ,
74
+ ssr : {
75
+ noExternal : [ '@astrojs/*' ] ,
76
+ } ,
77
+ } ,
68
78
} ) ;
Original file line number Diff line number Diff line change 1
1
[build ]
2
2
publish = " dist"
3
- command = " yarn generate-json && yarn build"
3
+ command = " yarn install && yarn generate-json && yarn build"
4
4
5
5
[build .environment ]
6
6
NODE_VERSION = " 20"
7
7
DEBUG = " *"
8
+ NODE_ENV = " production"
9
+ YARN_FLAGS = " --frozen-lockfile"
8
10
9
11
[[plugins ]]
10
12
package = " @netlify/plugin-functions-core"
@@ -13,3 +15,8 @@ package = "@netlify/plugin-functions-core"
13
15
14
16
[functions ]
15
17
node_bundler = " esbuild"
18
+
19
+ [[redirects ]]
20
+ from = " /*"
21
+ to = " /index.html"
22
+ status = 200
You can’t perform that action at this time.
0 commit comments