mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor-ui): fix BASE_URL replacement on windows (#4202)
This commit is contained in:
committed by
GitHub
parent
b809a2a074
commit
5f0c65690b
@@ -1755,7 +1755,7 @@ class App {
|
||||
const editorUiPath = require.resolve('n8n-editor-ui');
|
||||
const filePath = pathJoin(pathDirname(editorUiPath), 'dist', 'index.html');
|
||||
const n8nPath = config.getEnv('path');
|
||||
const basePathRegEx = /\/%BASE_PATH%\//g;
|
||||
const basePathRegEx = /\/{{BASE_PATH}}\//g;
|
||||
|
||||
let readIndexFile = readFileSync(filePath, 'utf8');
|
||||
readIndexFile = readIndexFile.replace(basePathRegEx, n8nPath);
|
||||
|
||||
Reference in New Issue
Block a user