fix(editor-ui): fix BASE_URL replacement on windows (#4202)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-09-27 07:02:41 +02:00
committed by GitHub
parent b809a2a074
commit 5f0c65690b
6 changed files with 6 additions and 6 deletions

View File

@@ -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);