Skip to content

Commit

Permalink
fix: use href with no URL transformation
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Koppers <[email protected]>
  • Loading branch information
noreiller and sokra committed Dec 11, 2024
1 parent 6df6f06 commit 619a7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/build/webpack/config/blocks/css/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ export const css = curry(async function css(
insert: function (linkTag: HTMLLinkElement) {
if (typeof _N_E_STYLE_LOAD === 'function') {
const { href, onload, onerror } = linkTag
_N_E_STYLE_LOAD(new URL(href).toString()).then(
_N_E_STYLE_LOAD(href).then(
() => onload?.call(linkTag, { type: 'load' } as Event),
() => onerror?.call(linkTag, {} as Event)
)
Expand Down

0 comments on commit 619a7e6

Please sign in to comment.