Skip to content

[nextjs] support assetPrefix option #4174

Description

@klapec

Package + Version

  • @sentry/cli: 1.71.0
  • @sentry/nextjs: 6.15.0

Description

I have my Next.js (12.0.4) app served with an assetPrefix option in the next.config.js set to point to a custom CDN location.

Unfortunately, my on-premise Sentry instance seems to be not matching the sourcemaps that are being uploaded every time I do a production app build with the exception trace filename.

Here's the filename that I see in the issue's exception trace filename: /multi-prod/B991483/react/_next/static/chunks/pages/_app-40564a69361d2d0a.js

Here's the filename that I seen in the project's Source Maps > Archive page: ~/_next/static/chunks/pages/_app-40564a69361d2d0a.js (and a corresponding .js.map file: ~/_next/static/chunks/pages/_app-40564a69361d2d0a.js.map)

The actual script is served from https://cdnprod.example.com/multi-prod/B991483/react/_next/static/chunks/pages/_app-40564a69361d2d0a.js

And the script has a following sourceMappingURL comment: //# sourceMappingURL=_app-40564a69361d2d0a.js.map.

Is this all correct? The issue here is that every issue has problems with "Source code was not found".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions