refactor: remove unused env vars (#42500)
This commit is contained in:
committed by
GitHub
parent
cd5c28b332
commit
a555e013a0
@ -17,11 +17,6 @@ import { removeCookies } from '../utils/getSetAccessToken';
|
||||
import { decodeEmail } from '../../common/utils';
|
||||
import { getRedirectParams } from '../utils/redirection';
|
||||
|
||||
const isSignUpDisabled = !!process.env.DISABLE_SIGNUP;
|
||||
if (isSignUpDisabled) {
|
||||
console.log('fcc:boot:auth - Sign up is disabled');
|
||||
}
|
||||
|
||||
const passwordlessGetValidators = [
|
||||
check('email')
|
||||
.isBase64()
|
||||
|
@ -2,7 +2,6 @@ const path = require('path');
|
||||
require('dotenv').config({ path: path.resolve(__dirname, '../../../.env') });
|
||||
|
||||
const _ = require('lodash');
|
||||
const Rx = require('rx');
|
||||
const loopback = require('loopback');
|
||||
const boot = require('loopback-boot');
|
||||
const createDebugger = require('debug');
|
||||
@ -28,7 +27,6 @@ if (sentry.dns === 'dsn_from_sentry_dashboard') {
|
||||
log('Sentry initialized');
|
||||
}
|
||||
|
||||
Rx.config.longStackSupport = process.env.NODE_DEBUG !== 'production';
|
||||
const app = loopback();
|
||||
|
||||
app.set('state namespace', '__fcc__');
|
||||
|
Reference in New Issue
Block a user