Skip to content

Commit

Permalink
update vercel-build script to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavNatalia committed Dec 20, 2024
1 parent 9c8a070 commit 1fdf7e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"version": 2,
"builds": [
{
"src": "json-server/index.js",
"use": "@vercel/node"
},
{
"src": "package.json",
"use": "@vercel/static-build",
Expand All @@ -14,10 +10,6 @@
}
],
"routes": [
{
"src": "/api/(.*)",
"dest": "json-server/index.js"
},
{
"src": "/(.*)",
"dest": "/index.html"
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function getApiUrl(mode: BuildMode, apiUrl?: string) {
return apiUrl;
}
return mode === 'production'
? 'https://react-production-orcin.vercel.app/'
? 'https://production-project-server-three-xi.vercel.app/'
: 'http://localhost:8000';
}

Expand Down

0 comments on commit 1fdf7e8

Please sign in to comment.