Resolve local dependencies dynamically

This commit is contained in:
Kevin Sandow
2023-10-16 17:21:02 +02:00
parent 7acd2a32aa
commit a720e643c9
+6 -4
View File
@@ -1,8 +1,10 @@
const path = require("node:path")
module.exports={ module.exports={
"cfunctions_path":process.env.HOME+"/thegame/js/common_functions.js", "cfunctions_path":path.resolve(__dirname, "../js/common_functions.js"),
"functions_path":process.env.HOME+"/thegame/node/server_functions.js", "functions_path":path.resolve(__dirname, "server_functions.js"),
"worker_path":process.env.HOME+"/thegame/node/server_worker.js", "worker_path":path.resolve(__dirname, "server_worker.js"),
"data_path":process.env.HOME+"/thegame/node/data.js", "data_path":path.resolve(__dirname, "data.js"),
"base_url":"http://thegame.com", "base_url":"http://thegame.com",
"keyword":"123", "keyword":"123",
"master":"123", "master":"123",