You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(docs): enable sourcemap upload, releases, and environment tracking (#705)
## Summary
Enable sourcemap resolution and environment tracking for the docs site
(cli.sentry.dev / `cli-website` Sentry project).
- Sourcemaps uploaded to Sentry after each docs build using our own CLI
(no 20MB `@sentry/cli` binary)
- Environment tracking: `production` on main/release, `staging` on PR
previews, `development` locally
- Release names match the CLI version from `package.json`
- `cli-website` project associated with CLI releases in
`sentry-release.yml`
## Changes
- **`docs/astro.config.mjs`**: Disable `@sentry/astro` plugin upload,
enable Vite sourcemap generation (`hidden`), add `environment` and
`release`
- **`docs/sentry.client.config.js`**: Add `environment` from
`PUBLIC_SENTRY_ENVIRONMENT`
- **`docs/sentry.server.config.js`**: Add `environment` from
`PUBLIC_SENTRY_ENVIRONMENT`
- **`.github/workflows/ci.yml`**: Post-build `sentry sourcemap inject` +
`upload` (push to main/release only)
- **`.github/workflows/docs-preview.yml`**: Same post-build
inject+upload for PR previews
- **`.github/workflows/sentry-release.yml`**: Add `cli-website` to
`--project` in release create
0 commit comments