-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
46 lines (45 loc) · 1.41 KB
/
render.yaml
File metadata and controls
46 lines (45 loc) · 1.41 KB
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
36
37
38
39
40
41
42
43
44
45
46
# Render Blueprint for ThumbCode Staging
# https://render.com/docs/blueprint-spec
services:
- type: web
name: thumbcode-staging
runtime: static
buildCommand: corepack enable && pnpm install --frozen-lockfile && pnpm build
staticPublishPath: ./dist
pullRequestPreviewsEnabled: true
headers:
# Security headers
- path: /*
name: X-Frame-Options
value: DENY
- path: /*
name: X-Content-Type-Options
value: nosniff
- path: /*
name: Referrer-Policy
value: strict-origin-when-cross-origin
- path: /*
name: Strict-Transport-Security
value: max-age=31536000; includeSubDomains
- path: /*
name: Permissions-Policy
value: camera=(self), microphone=(self), geolocation=()
# Cache static assets aggressively (hashed filenames)
# NOTE: Specific paths must come BEFORE /* to avoid nondeterministic matching
- path: /assets/*
name: Cache-Control
value: public, max-age=31536000, immutable
# Staging: no-cache for HTML to always get fresh builds
- path: /*
name: Cache-Control
value: no-cache, no-store, must-revalidate
routes:
# SPA fallback - all routes serve index.html
- type: rewrite
source: /*
destination: /index.html
envVars:
- key: NODE_VERSION
value: 22
- key: PNPM_VERSION
value: 10