Fix old/broken env import
This commit is contained in:
parent
b48b93a6de
commit
acbeddf11c
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
import { connect } from "../data/db";
|
||||
import { setIsAPI } from "../globals";
|
||||
import { apiEnv } from "./loadApiEnv";
|
||||
import { env } from "../env";
|
||||
|
||||
if (!apiEnv.KEY) {
|
||||
if (!env.KEY) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.error("Project root .env with KEY is required!");
|
||||
process.exit(1);
|
||||
|
|
Loading…
Add table
Reference in a new issue