fix: add dotenv vault

This commit is contained in:
StevanFreeborn
2023-02-19 16:27:52 -06:00
parent 62a7c7b832
commit e870722e3d
4 changed files with 45 additions and 30 deletions
+12
View File
@@ -0,0 +1,12 @@
#################################################################################
# #
# This file uniquely identifies your project in dotenv-vault. #
# You SHOULD commit this file to source control. #
# #
# Generated with 'npx dotenv-vault new' #
# #
# Learn more at https://dotenv.org/env-vault #
# #
#################################################################################
DOTENV_VAULT=vlt_ec81c3b4428f6b230fe7295edceef4214cd1b7b5b04982ab652b12393652128a
+5
View File
@@ -128,3 +128,8 @@ dist
.yarn/build-state.yml .yarn/build-state.yml
.yarn/install-state.gz .yarn/install-state.gz
.pnp.* .pnp.*
.env*
.flaskenv*
!.env.project
!.env.vault
+1 -3
View File
@@ -1,9 +1,7 @@
import { type RootHookObject, type Context } from 'mocha'; import { type RootHookObject, type Context } from 'mocha';
import { expect } from 'chai'; import { expect } from 'chai';
import * as dotenv from 'dotenv'; import * as dotenv from 'dotenv';
import path from 'path'; dotenv.config();
const envPath = path.resolve(__dirname, '.env');
dotenv.config({ path: envPath });
let baseURL: string | undefined; let baseURL: string | undefined;
let apiKey: string | undefined; let apiKey: string | undefined;