Skip to content

Commit

Permalink
fix: exclude basePath in findSourceMapURL
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldamota committed Oct 23, 2024
1 parent 51d6e76 commit d059415
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/next/src/client/app-find-source-map-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export const findSourceMapURL =

url.searchParams.set(
'filename',
filename.replace(new RegExp(`^${document.location.origin}`), '')
filename.replace(
new RegExp(`^${document.location.origin}${basePath}`),
''
)
)

return url.href
Expand Down

0 comments on commit d059415

Please sign in to comment.