Fix Vercel deployment to serve React client instead of server code
This commit is contained in:
parent
536c1dddc3
commit
4b941ff318
|
|
@ -4,6 +4,7 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"vercel-build": "vite build",
|
||||
"dev": "vite",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"version": 2,
|
||||
"buildCommand": "cd client && npm install && npm run build",
|
||||
"buildCommand": "npm run build",
|
||||
"outputDirectory": "client/dist",
|
||||
"builds": [
|
||||
{
|
||||
|
|
@ -13,6 +13,10 @@
|
|||
"src": "/api/(.*)",
|
||||
"dest": "/server/index.ts"
|
||||
},
|
||||
{
|
||||
"src": "/assets/(.*)",
|
||||
"dest": "/assets/$1"
|
||||
},
|
||||
{
|
||||
"src": "/(.*)",
|
||||
"dest": "/index.html"
|
||||
|
|
|
|||
Loading…
Reference in New Issue