mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
change e2e to use node module
This commit is contained in:
1 parent
f797f4d897
commit
c06d6d6deb
8 files changed
+29
-13
No files matched your search
+1
-1
@@ -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": {
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user