We use Wrangler 3 and the Sentry CLI to

We use Wrangler 3 and the Sentry CLI to push the dist folder generated by wrangler deploy --outdir=./dist to sentry as a release. Some errors do seem to point to the right file, others don't for some reason, also stuff like deduplication and grouping don't always work like we expect to yet.
3 Replies
Jökull Sólberg
Uploaded source maps but the reported lines in the stack trace are completely wrong - referencing super random code lines.
ItsWendell
ItsWendellOP2y ago
@jokullsolberg same here, sometimes it is right though, we also have a monorepo using turbo repo where we use modules that are shared over multiple works, can imagine that these might screw with things too
Jökull Sólberg
Sourcemaps magically started working yesterday No idea how or why - but I'm happy 😄 Here are my scripts:
{
"deploy": "pnpm tsc && pnpm build && wrangler deploy && pnpm create-sentry-release",
"build": "wrangler deploy --dry-run --outdir=dist",
"create-sentry-release": "dotenv -e .dev.vars -e .env sentry-cli releases new \"1.0.0\" --finalize && sentry-cli releases files \"1.0.0\" upload-sourcemaps ./dist",
}
{
"deploy": "pnpm tsc && pnpm build && wrangler deploy && pnpm create-sentry-release",
"build": "wrangler deploy --dry-run --outdir=dist",
"create-sentry-release": "dotenv -e .dev.vars -e .env sentry-cli releases new \"1.0.0\" --finalize && sentry-cli releases files \"1.0.0\" upload-sourcemaps ./dist",
}
also a monorepo using turbo
Want results from more Discord servers?
Add your server