forked from github/plane
env fixes (#316)
This commit is contained in:
parent
f17ecd597b
commit
2cadb3784b
@ -18,7 +18,7 @@ const nextConfig = {
|
||||
},
|
||||
};
|
||||
|
||||
if (process.env.NEXT_PUBLIC_ENABLE_SENTRY) {
|
||||
if (parseInt(process.env.NEXT_PUBLIC_ENABLE_SENTRY || "0")) {
|
||||
module.exports = withSentryConfig(nextConfig, { silent: true }, { hideSourceMaps: true });
|
||||
} else {
|
||||
module.exports = nextConfig;
|
||||
|
@ -113,7 +113,7 @@ const SignInPage: NextPage = () => {
|
||||
Sign in to your account
|
||||
</h2>
|
||||
<div className="mt-16 bg-white py-8 px-4 sm:rounded-lg sm:px-10">
|
||||
{Boolean(process.env.NEXT_PUBLIC_ENABLE_OAUTH) ? (
|
||||
{parseInt(process.env.NEXT_PUBLIC_ENABLE_OAUTH || "0") ? (
|
||||
<>
|
||||
<div className="mb-4">
|
||||
<EmailSignInForm handleSuccess={onSignInSuccess} />
|
||||
|
Loading…
Reference in New Issue
Block a user