Skip to content

the ultimate vocal synthesizer - sing, speak, beatbox, and more

Rust

Vercel: skip deploys on t3/** branches and cache hashed assets as immutable (they revalidated on every visit)

Jameson Hodgee2e7622b446d
diff --git a/vercel.json b/vercel.json
index a951b8e..8490309 100644
--- a/vercel.json
+++ b/vercel.json
@@ -3,5 +3,24 @@
"framework": "vite",
"installCommand": "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --target wasm32-unknown-unknown && bun install --frozen-lockfile",
"buildCommand": "PATH=\"$HOME/.cargo/bin:$PATH\" bun run build",
- "outputDirectory": "dist"
+ "outputDirectory": "dist",
+ "git": {
+ "deploymentEnabled": {
+ "t3/**": false
+ }
+ },
+ "headers": [
+ {
+ "source": "/assets/(.*)",
+ "headers": [{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }]
+ },
+ {
+ "source": "/fonts/(.*)",
+ "headers": [{ "key": "Cache-Control", "value": "public, max-age=86400" }]
+ },
+ {
+ "source": "/data/(.*)",
+ "headers": [{ "key": "Cache-Control", "value": "public, max-age=86400" }]
+ }
+ ]
}