File tree Expand file tree Collapse file tree 2 files changed +20
-12
lines changed Expand file tree Collapse file tree 2 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ export default defineConfig({
24
24
base : config . site . base_path ? config . site . base_path : "/" ,
25
25
trailingSlash : config . site . trailing_slash ? "always" : "ignore" ,
26
26
output : "static" ,
27
+ build : {
28
+ format : 'directory' ,
29
+ assets : '_assets' ,
30
+ } ,
27
31
i18n : {
28
32
locales : filteredSupportedLang ,
29
33
defaultLocale : default_language ,
@@ -70,9 +74,14 @@ export default defineConfig({
70
74
build : {
71
75
sourcemap : false ,
72
76
minify : true ,
77
+ rollupOptions : {
78
+ output : {
79
+ manualChunks : undefined ,
80
+ } ,
81
+ } ,
73
82
} ,
74
- ssr : {
75
- noExternal : [ '@astrojs/* ' ] ,
83
+ optimizeDeps : {
84
+ exclude : [ '@astrojs/mdx ' ] ,
76
85
} ,
77
86
} ,
78
87
} ) ;
Original file line number Diff line number Diff line change 1
1
[build ]
2
2
publish = " dist"
3
- command = " yarn install && yarn generate-json && yarn build"
3
+ command = " yarn install --frozen-lockfile && yarn generate-json && yarn build"
4
4
5
5
[build .environment ]
6
6
NODE_VERSION = " 20"
7
- DEBUG = " *"
8
7
NODE_ENV = " production"
9
8
YARN_FLAGS = " --frozen-lockfile"
10
9
11
- [[plugins ]]
12
- package = " @netlify/plugin-functions-core"
13
- [plugins .inputs ]
14
- functionsDirectory = " netlify/functions"
15
-
16
- [functions ]
17
- node_bundler = " esbuild"
18
-
19
10
[[redirects ]]
20
11
from = " /*"
21
12
to = " /index.html"
22
13
status = 200
14
+
15
+ [[headers ]]
16
+ for = " /*"
17
+ [headers .values ]
18
+ X-Frame-Options = " DENY"
19
+ X-XSS-Protection = " 1; mode=block"
20
+ X-Content-Type-Options = " nosniff"
21
+ Referrer-Policy = " strict-origin-when-cross-origin"
You can’t perform that action at this time.
0 commit comments