fix: change default port to 3001
This commit is contained in:
parent
994f823632
commit
c3222362d7
2 changed files with 3 additions and 2 deletions
|
|
@ -52,12 +52,12 @@ apolloServer.applyMiddleware({
|
|||
app,
|
||||
cors: {
|
||||
credentials: true,
|
||||
origin: devMode && 'https://localhost:3000'
|
||||
origin: devMode && 'https://localhost:3001'
|
||||
}
|
||||
})
|
||||
|
||||
// cors on app for /api/register endpoint.
|
||||
app.use(cors({ credentials: true, origin: devMode && 'https://localhost:3000' }))
|
||||
app.use(cors({ credentials: true, origin: devMode && 'https://localhost:3001' }))
|
||||
|
||||
app.use('/id-card-photo', serveStatic(idPhotoCardBasedir, { index: false }))
|
||||
app.use('/front-camera-photo', serveStatic(frontCameraBasedir, { index: false }))
|
||||
|
|
|
|||
|
|
@ -3,3 +3,4 @@ SKIP_PREFLIGHT_CHECK=true
|
|||
EXTEND_ESLINT=true
|
||||
HTTPS=true
|
||||
REACT_APP_TYPE_CHECK_SANCTUARY=false
|
||||
PORT=3001
|
||||
Loading…
Add table
Add a link
Reference in a new issue