Made ALLOW_REGISTRATION env public to the frontend
continuous-integration/drone/push Build is passing Details

main
Guus van Meerveld 2 years ago
parent 782c0117d9
commit b13c6d512f
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -5,6 +5,10 @@ services:
build: .
container_name: portfolio
environment:
NEXT_PUBLIC_GITEA_USERNAME: "Guusvanmeerveld"
NEXT_PUBLIC_GITEA_SERVER: "git.guusvanmeerveld.dev"
SESSION_PASSWORD: "jsdlakfjad;slkfjepoweaur3290r830-q998-039jaklfjdkl"
NEXT_PUBLIC_ALLOW_REGISTRATION: true
DATABASE_URL: "postgres://portfolio:portfolio@db:5432/portfolio"
ports:
- 3000:3000

@ -16,7 +16,7 @@ export const sessionOptions = {
};
export const registrationIsEnabled = process.env.ALLOW_REGISTRATION
? process.env.ALLOW_REGISTRATION == "true"
? process.env.NEXT_PUBLIC_ALLOW_REGISTRATION == "true"
: false;
export const saltRoundsForPassword =

Loading…
Cancel
Save