Skip to content

Commit 60eaf91

Browse files
committed
improve vercel rewrite
1 parent 852cdbb commit 60eaf91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build:tsup": "tsup-node",
1515
"build": "yarn run build:tsup",
1616
"//build:vercel": "See https://vercel.com/guides/using-express-with-vercel#standalone-express",
17-
"build:vercel": "yarn run build && mkdir api && cp dist/app.js api/index.js",
17+
"build:vercel": "yarn run build && mkdir -p api && cp dist/app.js api/index.js",
1818
"mongo": "yarn run start:mogno",
1919
"//start:mongo": "### Will start or create & start the image + store data locally in .mongo folder + remove the container when stopped.",
2020
"start:mongo": "docker run --rm -p 27017:27017 -v \"$(pwd)/.mongo:/data/db\" --label vulcan-mongodb mongo:4.0.4 ",

vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"rewrites": [{ "source": "/(.*)", "destination": "/api" }]
2+
"rewrites": [{ "source": "/api/(.*)", "destination": "/api" }]
33
}

0 commit comments

Comments
 (0)