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

@@ -1260,6 +1260,19 @@ export default {
// File contents excluded from context
</dyad-file>
<dyad-file path="vercel.json">
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"rewrites": [
{
"source": "/(.*)",
"destination": "/index.html"
}
]
}
</dyad-file>
<dyad-file path="vite.config.ts">
import { defineConfig } from "vite";
import dyadComponentTagger from "@dyad-sh/react-vite-component-tagger";