We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ab2cce commit 3c57a61Copy full SHA for 3c57a61
packages/sdk/src/generateSnapshotFromManifest.ts
@@ -60,7 +60,11 @@ export function generateSnapshotFromManifest(
60
const getPublicPath = (): string => {
61
if ('publicPath' in manifest.metaData) {
62
if (manifest.metaData.publicPath === 'auto' && version) {
63
- return new URL(version).origin + '/';
+ // use same implementation as publicPath auto runtime module implements
64
+ return version
65
+ .replace(/#.*$/, '')
66
+ .replace(/\?.*$/, '')
67
+ .replace(/\/[^\/]+$/, '/');
68
}
69
return manifest.metaData.publicPath;
70
} else {
0 commit comments