Skip to content

@sentry/nextjs: option for hidden-source-map instead of source-map #3549

@Pikachews

Description

@Pikachews

Firstly, thanks for all your hard work, Sentry is one of the best development tools out there, hands down. 👍

I have a small request for the new @sentry/nextjs plugin.
Based on this line here:

newConfig.devtool = 'source-map';

It seems the plugin only allows using source-map for devtools. Would it be possible to add an option to use hidden-source-map instead? The current configuration leaves the reference to the source map file, causing Chrome DevTools to report a bunch of

DevTools failed to load SourceMap: Could not load content for https://...: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

since I do not upload the source maps to the server. 🙁

Thanks for the consideration.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions