Skip to content

chore: add vercel.json for production deploy#92

Merged
kh0ra merged 1 commit into
mainfrom
chore/vercel-config
May 11, 2026
Merged

chore: add vercel.json for production deploy#92
kh0ra merged 1 commit into
mainfrom
chore/vercel-config

Conversation

@kh0ra
Copy link
Copy Markdown
Contributor

@kh0ra kh0ra commented May 11, 2026

Adds Vercel deploy config so connecting the GitHub repo just works.

  • Framework: vite, output: dist, install: npm install
  • SPA fallback rewrite covers any non-asset path that Vercel might 404 on
  • Service worker headers: must-revalidate + Service-Worker-Allowed:/ so SW updates ship fast and can claim root scope
  • manifest.webmanifest: correct content-type
  • 1y immutable cache on /assets/* and /fonts/* (Vite hashes filenames so this is safe)

Required env var to set in Vercel dashboard: VITE_QUICKNODE_RPC_URL. Optional: VITE_SOLANA_NETWORK, VITE_SENTRY_DSN, VITE_DFLOW_API_URL, VITE_MEV_PROTECTION_MODE.

- framework: vite, output: dist
- SPA fallback rewrite for non-asset routes (hash routing tolerates this but typed deep URLs still need it)
- Service worker: must-revalidate + Service-Worker-Allowed:/ header so updates ship fast
- manifest.webmanifest content-type
- 1y immutable cache on /assets/* and /fonts/*
@kh0ra kh0ra merged commit beb690f into main May 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant