fix: prioritize process.env over dotenv for CI builds
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
const env = require('dotenv').config();
|
||||
const dotenv = require('dotenv').config();
|
||||
|
||||
// Merge dotenv values with process.env, preferring process.env
|
||||
const envVars = {
|
||||
...(dotenv.parsed || {}),
|
||||
...process.env
|
||||
};
|
||||
|
||||
export default {
|
||||
ssr: false,
|
||||
env: env.parsed,
|
||||
env: envVars,
|
||||
/*
|
||||
** Headers of the page
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user