We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52a078d commit 8151cb6Copy full SHA for 8151cb6
packages/next/src/shared/lib/lazy-dynamic/preload-chunks.tsx
@@ -37,10 +37,14 @@ export function PreloadChunks({
37
return null
38
}
39
40
+ const dplId = process.env.NEXT_DEPLOYMENT_ID
41
+ ? `?dpl=${process.env.NEXT_DEPLOYMENT_ID}`
42
+ : ''
43
+
44
return (
45
<>
46
{allFiles.map((chunk) => {
- const href = `${workStore.assetPrefix}/_next/${encodeURIPath(chunk)}`
47
+ const href = `${workStore.assetPrefix}/_next/${encodeURIPath(chunk)}${dplId}`
48
const isCss = chunk.endsWith('.css')
49
// If it's stylesheet we use `precedence` o help hoist with React Float.
50
// For stylesheets we actually need to render the CSS because nothing else is going to do it so it needs to be part of the component tree.
0 commit comments