Bas*_*ijk 5 sentry ionic-framework ionic4
我用以下方法构建了我的 Ionic 项目:
ionic build --prod --source-map
然后我上传了源地图:
npx sentry-cli releases files my-app-1.1.0 upload-sourcemaps ../sentry-source-code-1.1.0 --url-prefix 'http://localhost'
(sentry-source-code-1.1.0 文件夹包含 .map 和 .js 文件)
这似乎是有道理的,但不幸的是 Ionic / Capacitor 应用程序总是从中加载,localhost因为它是一个 Webview 容器。
上传--url-prefix 'http://localhost没有改变任何东西
我如何告诉哨兵查找localhost工件中的文件和源映射?