Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97a140f

Browse files
authored
fix(critical CSS): use the assetPrefix in the critters config (vercel#27506)
This PR fixes vercel#25927 bug which prevents to use `assetPrefix` config with the experimental critical CSS feature. Fixes: vercel#25927 ## Bug - [x] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md`
1 parent 23ac435 commit 97a140f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/server/render.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ export async function renderToHTML(
11461146
ssrMode: true,
11471147
reduceInlineStyles: false,
11481148
path: renderOpts.distDir,
1149-
publicPath: '/_next/',
1149+
publicPath: `${renderOpts.assetPrefix}/_next/`,
11501150
preload: 'media',
11511151
fonts: false,
11521152
...renderOpts.optimizeCss,

0 commit comments

Comments
 (0)