@sentry/remix sourcemaps in production #5732
-
When running $ 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? |
Beta Was this translation helpful? Give feedback.
Answered by
AbhiPrasad
Sep 14, 2022
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AbhiPrasad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.