Skip to content

fix: add ?dpl to fonts in /_next/static/media part 2 #82488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: canary
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update packages/font/src/local/loader.ts
  • Loading branch information
styfle authored Aug 9, 2025
commit ca4e664879a91bc4461aad263535522ba6ee867e
4 changes: 3 additions & 1 deletion packages/font/src/local/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ const nextFontLocalFontLoader: FontLoader = async ({
typeof adjustFontFallback === 'undefined' || !!adjustFontFallback
)
// Should match behavior in get-asset-query-string.ts
const qs = `${fontUrl.includes('?') ? '&' : '?'}dpl=${deploymentId}`
const qs = deploymentId
? `${fontUrl.includes('?') ? '&' : '?'}dpl=${deploymentId}`
: ''

// Try to load font metadata from the font file using fontkit.
// The data is used to calculate the fallback font override values.
Expand Down
Loading