I have a problem that I believe is caused by some specific configuration of how the deployment of Nextjs applications are done on Layer0.
We use the sentry.io platform to do bug tracking in our application and the way this is done requires us to send the source maps at build time to Sentry, so when an error happens Sentry is able to to do the source mapping and point out the exact piece of code that is causing the error.
However, we are not able to use this platform as much as possible because, according to Sentry engineers, the source mapping process is already being done by Layer0, preventing Sentry from being able to correctly identify the location of the error.
My first guess was that source mapping was being caused by the configuration
But even forcing it to be
false, the stack trace is showing the Typescript files