mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 16:51:38 +10:00
chore: refactor env config
This commit is contained in:
@ -2,7 +2,13 @@ import { defineConfig, devices } from '@playwright/test';
|
|||||||
import dotenv from 'dotenv';
|
import dotenv from 'dotenv';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
dotenv.config({ path: path.resolve(__dirname, '../../', '.env.local') });
|
const ENV_FILES = ['.env', '.env.local', `.env.${process.env.NODE_ENV || 'development'}`];
|
||||||
|
|
||||||
|
ENV_FILES.forEach((file) => {
|
||||||
|
dotenv.config({
|
||||||
|
path: path.join(__dirname, `../../${file}`),
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* See https://playwright.dev/docs/test-configuration.
|
* See https://playwright.dev/docs/test-configuration.
|
||||||
|
|||||||
@ -96,6 +96,7 @@
|
|||||||
"VERCEL",
|
"VERCEL",
|
||||||
"VERCEL_ENV",
|
"VERCEL_ENV",
|
||||||
"VERCEL_URL",
|
"VERCEL_URL",
|
||||||
|
"NODE_ENV",
|
||||||
"DEPLOYMENT_TARGET",
|
"DEPLOYMENT_TARGET",
|
||||||
"FONT_CAVEAT_URI",
|
"FONT_CAVEAT_URI",
|
||||||
"POSTGRES_URL",
|
"POSTGRES_URL",
|
||||||
|
|||||||
Reference in New Issue
Block a user