Skip to content

Commit

Permalink
Merge pull request #68 from DenysShchypt/bug/fix-versel
Browse files Browse the repository at this point in the history
new vercelconfig
  • Loading branch information
DenysShchypt authored Aug 14, 2024
2 parents 7601a1b + 7e06ab9 commit 0b02282
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 0b02282

Please sign in to comment.