Fix remoteEntry path

This commit is contained in:
Кирилл Осипков 2026-05-22 15:02:03 +03:00
parent a18cef45c1
commit 0a2319dbef
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ export class CoreService {
try {
const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
if (process.env.PUBLIC_URL) {
manifest.remoteEntry = `${process.env.PUBLIC_URL}/remoteEntry.js`;
const p = manifest.remoteEntry ? new URL(manifest.remoteEntry).pathname : '/remoteEntry.js';
manifest.remoteEntry = `${process.env.PUBLIC_URL}${p}`;
}
manifest.backendUrl = backendUrl;