fix: change default port to 3001

This commit is contained in:
Liordino Neto 2020-07-31 16:32:34 -03:00 committed by Josh Harvey
parent 994f823632
commit c3222362d7
2 changed files with 3 additions and 2 deletions

View file

@ -52,12 +52,12 @@ apolloServer.applyMiddleware({
app, app,
cors: { cors: {
credentials: true, credentials: true,
origin: devMode && 'https://localhost:3000' origin: devMode && 'https://localhost:3001'
} }
}) })
// cors on app for /api/register endpoint. // 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('/id-card-photo', serveStatic(idPhotoCardBasedir, { index: false }))
app.use('/front-camera-photo', serveStatic(frontCameraBasedir, { index: false })) app.use('/front-camera-photo', serveStatic(frontCameraBasedir, { index: false }))

View file

@ -3,3 +3,4 @@ SKIP_PREFLIGHT_CHECK=true
EXTEND_ESLINT=true EXTEND_ESLINT=true
HTTPS=true HTTPS=true
REACT_APP_TYPE_CHECK_SANCTUARY=false REACT_APP_TYPE_CHECK_SANCTUARY=false
PORT=3001