Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

@sentry/remix sourcemaps in production #5732

Locked Answered by AbhiPrasad
thomasverleye asked this question in Q&A
Discussion options

When running remix build --sourcemap you'll get following warning:

$ remix build --sourcemap
Building Remix app in production mode...
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
You have enabled source maps in production. This will make your server-side code visible to the public and is highly discouraged! If you insist, please ensure you are using environment variables for secrets and not hard-coding them into your source!
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
Built in 501ms

This is a valid warning they are raising, shouldn't user be advised to remove the sourcemap after uploading it to Sentry with the CLI?
And if so can we add this as a suggestion in the docs?

You must be logged in to vote

Hey, thanks for writing in! Yes, we should advise users to do this. Transferring this discussion as an issue to backlog, but PRs are welcome for both docs and for the SDK.

Replies: 1 comment 1 reply

Comment options

Hey, thanks for writing in! Yes, we should advise users to do this. Transferring this discussion as an issue to backlog, but PRs are welcome for both docs and for the SDK.

You must be logged in to vote
1 reply
Comment options

Done with #5740

Answer selected by AbhiPrasad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /