Hi, my question to all the community people who are using the expo web extensively, so every time I was trying to deploy the application the whole static folder, as well as the whole codebase, is showing under the inspect → source. Can anyone please help me out with this?
These are the build scripts that I am using in the project package.json:
{
…
“scripts”: {
“start”: “expo start”,
“android”: “expo start --android”,
“ios”: “expo start --ios”,
“web”: “yarn expo start --web”,
“eject”: “expo eject”,
“build”: “rm -rf web-build && yarn expo build:web”,
“deploy”: “yarn build && cd web-build && vercel --prod”
},
…
}
I have a bit of a catch-22… If I understand this correctly, the browser will load the source maps when you open devtools. It appears that you can remove these map files after build or set an environment variable to cause them not to be generated. That being said, I need the source map files to be generated and uploaded to sentry.
If I am on the right track, this will take some experimentation with the Sentry and Amplify settings.