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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user