Commit 5080d5df authored by Stefan Probst's avatar Stefan Probst
Browse files

chore: disable sign-in on prod again

parent 9c8ffc1b
Pipeline #183745 passed with stages
in 10 minutes and 12 seconds
......@@ -181,6 +181,7 @@ function MainNavigation(): JSX.Element {
</Fragment>
)
}
function ReportAnIssueButton({
user,
path,
......@@ -252,6 +253,18 @@ function AuthButton() {
)
}
/* Disable login on production deploy. */
if (
process.env.NEXT_PUBLIC_SSHOC_BASE_URL ===
'https://marketplace.sshopencloud.eu'
) {
return (
<div className="relative flex items-center space-x-6 text-gray-500">
<ReportAnIssueButton path={router.asPath} user={user} />
</div>
)
}
if (auth.session !== null) {
return (
<div className="relative flex items-center space-x-6 text-gray-500">
......
......@@ -3,7 +3,14 @@ import SignInScreen from '@/screens/auth/SignInScreen'
/**
* Sign in page.
*/
export default function SignInPage(): JSX.Element {
export default function SignInPage(): JSX.Element | null {
/* Disable login on production deploy. */
if (
process.env.NEXT_PUBLIC_SSHOC_BASE_URL ===
'https://marketplace.sshopencloud.eu'
) {
return null
}
return <SignInScreen />
}
......@@ -3,6 +3,14 @@ import SignUpScreen from '@/screens/auth/SignUpScreen'
/**
* Sign up page.
*/
export default function SignUpPage(): JSX.Element {
export default function SignUpPage(): JSX.Element | null {
/* Disable login on production deploy. */
if (
process.env.NEXT_PUBLIC_SSHOC_BASE_URL ===
'https://marketplace.sshopencloud.eu'
) {
return null
}
return <SignUpScreen />
}
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