Description
When the wizard adds the new instrumentation-client.ts
file, it does not remove the old sentry.client.config.ts
, which during dogfooding broke instrumentation even for errors. Our wizard should make sure that these changes do not break instrumentation and clean up unused / deprecated files (even if just by renaming them to [name]-deprecated.[suffix]
.
Reproduction:
- Setup sentry using wizard in Next.js project
- Setup sourcemaps using wizard in Next.js project
Actual Outcome:
- The project contains both
instrumentation-client.ts
andsentry.client.config.ts
- Sentry seems to crash when both instrumentation files are found (example)
- As an effect of this, Sentry does not capture exceptions when this happens
Expected Outcome:
I only have instrumentation-client.ts
, or both files, but instrumentation is not broken by this.