-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CORS configuration and server settings for global access
- Loading branch information
1 parent
c12ab02
commit 707abb6
Showing
3 changed files
with
130 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.* | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/versions | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# env files (can opt-in for committing if needed) | ||
.env* | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"version": 2, | ||
"builds": [ | ||
{ | ||
"src": "frontend/package.json", | ||
"use": "@vercel/next" | ||
}, | ||
{ | ||
"src": "backend/server.js", | ||
"use": "@vercel/node" | ||
} | ||
], | ||
"routes": [ | ||
{ | ||
"src": "/api/(.*)", | ||
"dest": "backend/server.js" | ||
}, | ||
{ | ||
"src": "/(.*)", | ||
"dest": "frontend/$1" | ||
} | ||
], | ||
"headers": [ | ||
{ | ||
"source": "/(.*)", | ||
"headers": [ | ||
{ | ||
"key": "Access-Control-Allow-Credentials", | ||
"value": "true" | ||
}, | ||
{ | ||
"key": "Access-Control-Allow-Origin", | ||
"value": "*" | ||
}, | ||
{ | ||
"key": "Access-Control-Allow-Methods", | ||
"value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" | ||
}, | ||
{ | ||
"key": "Access-Control-Allow-Headers", | ||
"value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version, Authorization" | ||
} | ||
] | ||
} | ||
] | ||
} |