Skip to content

Commit

Permalink
chore: wasm cache control (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant authored Apr 18, 2024
1 parent 418a9e6 commit d66a0a1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
[build]
publish = "dist/"
command = "pnpm i --frozen-lockfile && npm i -g wasm-pack && pnpm init:biome && pnpm build:wasm-dev && pnpm build:js"

[[headers]]
for = "/assets/biome*.wasm"
[headers.values]
# Multi-value headers are expressed with multi-line strings
cache-control = '''
public,
max-age=31536000000
'''

0 comments on commit d66a0a1

Please sign in to comment.