fix(editor): Replace more variants of BASE_PATH in static assets (#9564)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-05-31 14:32:20 +02:00
committed by GitHub
parent 8da0d6e9ba
commit d361b42c70

View File

@@ -141,6 +141,7 @@ export class Start extends BaseCommand {
createReadStream(filePath, 'utf-8'),
replaceStream('/{{BASE_PATH}}/', n8nPath, { ignoreCase: false }),
replaceStream('/%7B%7BBASE_PATH%7D%7D/', n8nPath, { ignoreCase: false }),
replaceStream('/%257B%257BBASE_PATH%257D%257D/', n8nPath, { ignoreCase: false }),
replaceStream('/static/', n8nPath + 'static/', { ignoreCase: false }),
];
if (filePath.endsWith('index.html')) {