Netwarden
Back to Documentation
guidesv2.0

Uploads from your build: releases, source maps and debug files

Keep sentry-cli and the Sentry build plugins: point them at Netwarden with a build token, and every deploy uploads releases, source maps, dSYMs and ProGuard mappings.

Last updated: October 25, 2026
2 min read

Uploads from your build

The build tooling you already use with Sentry keeps working with Netwarden. sentry-cli, the webpack, Vite, Rollup and Metro plugins, and the Xcode and Gradle upload steps all talk to the same /api/0/… endpoints, which Netwarden serves.

1. Create a build token

In Netwarden, open the project, then Settings → Sentry, and create a build token. It starts with nw_tok_. The same tab shows your account id, which takes the place of the Sentry organization.

2. Point the tooling at Netwarden

Either a sentry.properties file:

properties
defaults.url=https://api.netwarden.com
defaults.org=<your account id>
defaults.project=<project slug>
auth.token=nw_tok_…

or the environment variables your CI already sets:

bash
SENTRY_URL=https://api.netwarden.com
SENTRY_ORG=<your account id>
SENTRY_PROJECT=<project slug>
SENTRY_AUTH_TOKEN=nw_tok_…

Keep the token in your CI provider's secrets (Vercel, Netlify, Railway, Fly, Cloudflare Pages and GitHub Actions all have them), never in the repository.

3. Upload on every deploy

bash
VERSION=$(sentry-cli releases propose-version)
sentry-cli releases new "$VERSION"
sentry-cli sourcemaps upload --release "$VERSION" ./dist
sentry-cli releases set-commits "$VERSION" --auto
sentry-cli releases finalize "$VERSION"
sentry-cli releases deploys "$VERSION" new -e production
  • sourcemaps upload accepts artifact bundles and debug ids.
  • debug-files upload takes dSYM, ELF, PDB and ProGuard files for native crashes.
  • set-commits --auto records the commits in the release, so an issue lists the commits that touched the crashing file.

With a bundler plugin (for example @sentry/vite-plugin or @sentry/webpack-plugin), set the same four values and the plugin uploads during the build.

Linking stack traces to your code

On the project's Sentry tab, set the repository URL and source root. In-app frames then link to the line in GitHub, GitLab or Bitbucket at the release's commit.

Something unclear or wrong on this page? Write to us and the people who build Netwarden will fix it.