Globalise Wiki.js initialisation

pull/6718/head
Justman10000 10 months ago committed by GitHub
parent c4c41be81a
commit c86a46b299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,9 +23,9 @@ if (gte(process.version, '21.0.0')) {
let WIKI = { let WIKI = {
IS_DEBUG: process.env.NODE_ENV === 'development', IS_DEBUG: process.env.NODE_ENV === 'development',
IS_MASTER: true, IS_MASTER: true,
ROOTPATH: process.cwd(), ROOTPATH: path.join(__dirname, '..'),
INSTANCE_ID: nanoid(10), INSTANCE_ID: nanoid(10),
SERVERPATH: path.join(process.cwd(), 'server'), SERVERPATH: path.join(__dirname),
Error: require('./helpers/error'), Error: require('./helpers/error'),
configSvc: require('./core/config'), configSvc: require('./core/config'),
kernel: require('./core/kernel'), kernel: require('./core/kernel'),

Loading…
Cancel
Save