change e2e to use node module

This commit is contained in:
wancat committed 2024-02-08 17:40:01 +08:00
1 parent f797f4d897
commit c06d6d6deb
8 files changed
+29 -13

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
"setup": "node dist/cli/setup.js",
"clean": "node dist/cli/clean.js",
"build": "tsc",
"watch": "concurrently \"tsc -w\" \"nodemon\"",
"watch": "concurrently \"nodemon\" \"tsc -w\"",
"build:quests": "node dist/cli/build.js"
},
"dependencies": {
+5
View File
@@ -4,6 +4,9 @@ import { get } from './utils/env.js'
// Import dotenv and load ../.env
dotenv.config({ path: '../.env' })
if (process.env.NODE_ENV !== 'production') {
dotenv.config({ path: '../.env.dev' })
}
function getTrustProxies(key) {
if (!process.env[key]) {
@@ -68,4 +71,6 @@ export function getQuestImage(id) {
return `${config.docker.imagePrefix}${id}`
}
console.log(config)
export default config