Fix remoteEntry path
This commit is contained in:
parent
a18cef45c1
commit
0a2319dbef
|
|
@ -75,7 +75,8 @@ export class CoreService {
|
||||||
try {
|
try {
|
||||||
const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
|
const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
|
||||||
if (process.env.PUBLIC_URL) {
|
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;
|
manifest.backendUrl = backendUrl;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue