Skip to content

Commit

Permalink
Take basic auth out to test fixing prod deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmartt committed Mar 19, 2024
1 parent 2e1e958 commit 9853510
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions nextjs/scripts/create-local-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ app
expressApp.use('/health-check', middlewareToRouteToRails);

// Then add http auth to everything else
const basicAuthUser = process.env.BASIC_AUTH_USER;
const basicAuthPass = process.env.BASIC_AUTH_PASSWORD;
if (basicAuthUser && basicAuthPass) {
expressApp.use(basicAuth({
users: { [process.env.BASIC_AUTH_USER]: process.env.BASIC_AUTH_PASSWORD },
challenge: true
}))
}
// const basicAuthUser = process.env.BASIC_AUTH_USER;
// const basicAuthPass = process.env.BASIC_AUTH_PASSWORD;
// if (basicAuthUser && basicAuthPass) {
// expressApp.use(basicAuth({
// users: { [process.env.BASIC_AUTH_USER]: process.env.BASIC_AUTH_PASSWORD },
// challenge: true
// }))
// }

// Then handle the next specific routes
// Paths next will handle, route them explicitly, everything else goes to rails
Expand Down

0 comments on commit 9853510

Please sign in to comment.