refactor: remove unused env vars (#42500)

This commit is contained in:
Oliver Eyton-Williams
2021-06-15 18:57:10 +02:00
committed by GitHub
parent cd5c28b332
commit a555e013a0
2 changed files with 0 additions and 7 deletions

View File

@ -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()

View File

@ -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__');