Merge pull request #6 from Jeff-Emmett/new-website

Fix Vercel deployment to serve React client instead of server code
This commit is contained in:
Jeff Emmett 2025-06-19 13:02:43 +02:00 committed by GitHub
commit a44ecf888a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 12 deletions

View File

@ -4,6 +4,7 @@
"type": "module",
"scripts": {
"build": "vite build",
"vercel-build": "vite build",
"dev": "vite",
"preview": "vite preview"
},

View File

@ -1,26 +1,24 @@
{
"version": 2,
"buildCommand": "cd client && npm install && npm run build",
"buildCommand": "npm run build",
"outputDirectory": "client/dist",
"builds": [
{
"src": "server/index.ts",
"use": "@vercel/node"
"functions": {
"server/index.ts": {
"maxDuration": 30
}
],
},
"routes": [
{
"src": "/api/(.*)",
"dest": "/server/index.ts"
},
{
"src": "/assets/(.*)",
"dest": "/assets/$1"
},
{
"src": "/(.*)",
"dest": "/index.html"
}
],
"functions": {
"server/index.ts": {
"maxDuration": 30
}
}
]
}