Commit 0c6e9c86 authored by Stefan Probst's avatar Stefan Probst
Browse files

build: re-enable sign-in

parent b92cce8f
Pipeline #177703 passed with stage
in 5 minutes and 8 seconds
......@@ -6,4 +6,3 @@ NEXT_PUBLIC_SSHOC_API_BASE_URL=https://sshoc-marketplace-api.acdh-dev.oeaw.ac.at
# NEXT_PUBLIC_RECAPTCHA_SITE_KEY=
NEXT_PUBLIC_MATOMO_BASE_URL=https://matomo.acdh.oeaw.ac.at/
NEXT_PUBLIC_MATOMO_SITE_ID=179
NEXT_PUBLIC_PRODUCTION_DEPLOY=1
......@@ -62,7 +62,6 @@ package:frontend:main:acdh:
NEXT_PUBLIC_SSHOC_BASE_URL: https://sshoc-marketplace.acdh-dev.oeaw.ac.at
NEXT_PUBLIC_SSHOC_API_BASE_URL: https://sshoc-marketplace-api.acdh-dev.oeaw.ac.at
# NEXT_PUBLIC_RECAPTCHA_SITE_KEY:
NEXT_PUBLIC_PRODUCTION_DEPLOY: 0
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
......@@ -82,6 +81,5 @@ package:frontend:tags:acdh:
# NEXT_PUBLIC_RECAPTCHA_SITE_KEY:
NEXT_PUBLIC_MATOMO_BASE_URL: https://matomo.acdh.oeaw.ac.at/
NEXT_PUBLIC_MATOMO_SITE_ID: 179
NEXT_PUBLIC_PRODUCTION_DEPLOY: 1
rules:
- if: '$CI_COMMIT_TAG != null'
......@@ -293,17 +293,14 @@ function AuthButton() {
return (
<div className="relative flex items-center space-x-6 text-gray-500">
<ReportAnIssueButton path={router.asPath} />
{/* Disable login on production deploy. */}
{process.env.NEXT_PUBLIC_PRODUCTION_DEPLOY !== '1' ? (
<NavLinkButton
href={{
pathname: '/auth/sign-in',
query: redirectPath !== undefined ? { from: redirectPath } : {},
}}
>
Sign in
</NavLinkButton>
) : null}
<NavLinkButton
href={{
pathname: '/auth/sign-in',
query: redirectPath !== undefined ? { from: redirectPath } : {},
}}
>
Sign in
</NavLinkButton>
</div>
)
}
......
......@@ -5,9 +5,5 @@ import SignInScreen from '@/screens/auth/SignInScreen'
*/
export default function SignInPage(): JSX.Element {
/* Disable login on production deploy. */
return process.env.NEXT_PUBLIC_PRODUCTION_DEPLOY !== '1' ? (
<SignInScreen />
) : (
<div />
)
return <SignInScreen />
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment