Skip to content

Commit

Permalink
new vercelconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysShchypt committed Aug 14, 2024
1 parent 689ee8d commit 7e06ab9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 34 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"build": "vite build",
"lint": "eslint \"src/**/*.{ts,tsx,js,jsx}\" --fix",
"preview": "vite preview",
"format": "prettier --write \"../**/*.{ts,tsx,js,jsx}\""
Expand Down
2 changes: 1 addition & 1 deletion client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"paths": {
"@prisma": ["src/components/*"],
"@prisma/*": ["src/store/*"]
}
},
},
"include": [
"src/**/*",
Expand Down
37 changes: 5 additions & 32 deletions client/vercel.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,7 @@
{
"version": 2,
"builds": [
{
"src": "api/index.js",
"use": "@vercel/node"
},
{
"src": "client/package.json",
"use": "@vercel/static-build",
"config": {
"distDir": "build"
}
}
],
"routes": [
{
"src": "/api/(.*)",
"dest": "/api/index.js"
},
{
"src": "^/static/(.*)",
"dest": "/client/static/$1"
},
{
"src": "/(.*)\\.png",
"dest": "/client/$1.png"
},
{
"src": "/(.*)",
"dest": "/client/index.html"
}
]
"build": {
"env": {
"NODE_ENV": "production"
}
}
}

0 comments on commit 7e06ab9

Please sign in to comment.