Currently setting up a Next.js application on Vercel with Sentry configuration thanks to the @sentry/next.js
module. You can find an example repo here - https://github.com/voronianski/test-next-sentry-app
This setup is based on the official example from Next.js, available at https://github.com/vercel/next.js/tree/canary/examples/with-sentry.
The integration with Sentry is working smoothly. However, I have observed something that concerns me. The source maps for each file are accessible publicly.
You can access the app here - , and here is the map file for _app.js
This exposes the entire project structure and source code in the browser's developer tools - https://i.sstatic.net/PC4MN.png
I attempted to use a .vercelignore
file, but it did not resolve the issue - https://github.com/voronianski/test-next-sentry-app/blob/main/.vercelignore
Is there a way to prevent the deployment of source map files to the public domain on Vercel? Thank you!