-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
32 lines (27 loc) · 980 Bytes
/
Copy pathnetlify.toml
File metadata and controls
32 lines (27 loc) · 980 Bytes
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
# Netlify build configuration.
# Custom domain + DNS are configured in the Netlify UI; this file only owns
# the build process and the SPA fallback redirect.
[build]
# `publish` is resolved relative to `base`, so with base="frontend" the
# publish dir is `frontend/dist` on disk.
base = "frontend"
command = "bun install --frozen-lockfile && bun run build"
publish = "dist"
[build.environment]
# Pin a bun new enough to parse the lockfile.
BUN_VERSION = "1.3.9"
# Single-page-app fallback so deep links (/about) hit index.html.
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# Cache headers for hashed assets — Netlify already does sensible defaults,
# but be explicit so the index.html isn't accidentally pinned.
[[headers]]
for = "/index.html"
[headers.values]
Cache-Control = "no-cache, no-store, must-revalidate"
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"