Unverified Commit 97a140f7 authored by Aurélien MANCA's avatar Aurélien MANCA Committed by GitHub

fix(critical CSS): use the assetPrefix in the critters config (#27506)

This PR fixes #25927 bug which prevents to use `assetPrefix` config with the experimental critical CSS feature.

Fixes: #25927



## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
parent 23ac4351
...@@ -1146,7 +1146,7 @@ export async function renderToHTML( ...@@ -1146,7 +1146,7 @@ export async function renderToHTML(
ssrMode: true, ssrMode: true,
reduceInlineStyles: false, reduceInlineStyles: false,
path: renderOpts.distDir, path: renderOpts.distDir,
publicPath: '/_next/', publicPath: `${renderOpts.assetPrefix}/_next/`,
preload: 'media', preload: 'media',
fonts: false, fonts: false,
...renderOpts.optimizeCss, ...renderOpts.optimizeCss,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment