Login page now directly checks for ALLOW_REGISTRATION env
continuous-integration/drone/push Build is passing Details

main
Guus van Meerveld 2 years ago
parent a526e8f7f7
commit f91fe471b7
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -1,17 +1,17 @@
version: "3"
services:
app:
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
# app:
# 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
db:
image: postgres:14

@ -8,9 +8,7 @@ import multipleClassNames from "@utils/multipleClassNames";
import styles from "./login.module.scss";
import { registrationIsEnabled } from "@utils/config";
const Login: NextPage<{ registrationIsEnabled: boolean }> = ({
registrationIsEnabled
}) => {
const Login: NextPage = () => {
return (
<Layout>
<NextSeo title="Login" />
@ -130,8 +128,4 @@ const Login: NextPage<{ registrationIsEnabled: boolean }> = ({
);
};
export const getStaticProps: GetStaticProps = async () => {
return { props: { registrationIsEnabled } };
};
export default Login;

Loading…
Cancel
Save