Add vercel.json for default React vite.js template (#755)

Fixes #741 
See: https://vercel.com/docs/project-configuration#rewrites-examples
This commit is contained in:
Will Chen
2025-07-31 15:17:47 -07:00
committed by GitHub
parent 7938b69eca
commit e5e1495c57
18 changed files with 140 additions and 2 deletions

View File

@@ -5844,6 +5844,18 @@ export default {
}
=== vercel.json ===
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"rewrites": [
{
"source": "/(.*)",
"destination": "/index.html"
}
]
}
=== vite.config.ts ===
import { defineConfig } from "vite";
import dyadComponentTagger from "@dyad-sh/react-vite-component-tagger";