mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
add dotenv to server
This commit is contained in:
1 parent
7216158053
commit
ba3b40792b
3 files changed
+10
-4
No files matched your search
@@ -1,6 +1,10 @@
|
||||
import validator from 'validator'
|
||||
import { get } from './utils/env.js'
|
||||
|
||||
// Import dotenv and load ../.env
|
||||
import dotenv from 'dotenv'
|
||||
dotenv.config({ path: '../.env' })
|
||||
|
||||
function getTrustProxies(key) {
|
||||
if (!process.env[key]) {
|
||||
return []
|
||||
|
||||
Reference in new issue
Block a user