forked from biomejs/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
35 lines (31 loc) · 809 Bytes
/
netlify.toml
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
[build]
publish = "dist/"
command = '''
pnpm i --frozen-lockfile &&
([ -n "$(find ./biome/packages/@biomejs/wasm-web -maxdepth 1 -type f -name '*.wasm' -print -quit)" ] &&
echo "Skip WASM build" ||
(npm i -g wasm-pack && pnpm build:wasm-dev)) &&
pnpm build:js
'''
[[headers]]
for = "/assets/*"
[headers.values]
# Multi-value headers are expressed with multi-line strings
cache-control = '''
public,
max-age=31536000000,
immutable
'''
[[headers]]
for = "/_astro/*"
[headers.values]
# Multi-value headers are expressed with multi-line strings
cache-control = '''
public,
max-age=31536000000,
immutable
'''
[[plugins]]
package = "./scripts/netlify/plugins/wasm-cache"
[context.deploy-preview.environment]
SKIP_OG = "true"