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({
2323 site : config . site . base_url ? config . site . base_url : "http://examplesite.com" ,
2424 base : config . site . base_path ? config . site . base_path : "/" ,
2525 trailingSlash : config . site . trailing_slash ? "always" : "ignore" ,
26+ output : "static" ,
2627 i18n : {
2728 locales : filteredSupportedLang ,
2829 defaultLocale : default_language ,
@@ -65,4 +66,13 @@ export default defineConfig({
6566 } ,
6667 extendDefaultPlugins : true ,
6768 } ,
69+ vite : {
70+ build : {
71+ sourcemap : false ,
72+ minify : true ,
73+ } ,
74+ ssr : {
75+ noExternal : [ '@astrojs/*' ] ,
76+ } ,
77+ } ,
6878} ) ;
Original file line number Diff line number Diff line change 11[build ]
22publish = " dist"
3- command = " yarn generate-json && yarn build"
3+ command = " yarn install && yarn generate-json && yarn build"
44
55[build .environment ]
66NODE_VERSION = " 20"
77DEBUG = " *"
8+ NODE_ENV = " production"
9+ YARN_FLAGS = " --frozen-lockfile"
810
911[[plugins ]]
1012package = " @netlify/plugin-functions-core"
@@ -13,3 +15,8 @@ package = "@netlify/plugin-functions-core"
1315
1416[functions ]
1517node_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