Skip to content

Commit

Permalink
Update router.ts
Browse files Browse the repository at this point in the history
Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
abvthecity and ijjk authored Dec 18, 2024
1 parent c496c85 commit c2a77f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/shared/lib/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ function fetchNextData({
{} as HeadersInit,
isPrefetch ? { purpose: 'prefetch' } : {},
isPrefetch && hasMiddleware ? { 'x-middleware-prefetch': '1' } : {},
{ 'x-deployment-id': process.env.NEXT_DEPLOYMENT_ID }
process.env.NEXT_DEPLOYMENT_ID ? { 'x-deployment-id': process.env.NEXT_DEPLOYMENT_ID } : {}
),
method: params?.method ?? 'GET',
})
Expand Down

0 comments on commit c2a77f1

Please sign in to comment.