mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(editor): fix BASE_PATH for Vite dev mode (#4342)
* 🐛 Fix `BASE_PATH` for Vite dev mode * don't use the string `/{{BASE_PATH}}/` as it gets replaces in build * fix the static urls on windows * ffs node 14 Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -1800,7 +1800,7 @@ class App {
|
||||
const srcFile = await readFile(filePath, 'utf8');
|
||||
let payload = srcFile
|
||||
.replace(basePathRegEx, n8nPath)
|
||||
.replace(/\/static\//g, pathJoin(n8nPath, 'static/'));
|
||||
.replace(/\/static\//g, n8nPath + 'static/');
|
||||
if (filePath.endsWith('index.html')) {
|
||||
payload = payload.replace(closingTitleTag, closingTitleTag + scriptsString);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user