Skip to content

Vercel Integration no longer uploads sourcemap correctly #13715

@octref

Description

@octref

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

We've been using Sentry with Next.js. With the recent v8.0 update, the Vercel Integration no longer works and we can't find the source code from the stack trace. Here's the relevant build output:

[13:30:33.644] web:build: 
[13:30:33.644] web:build: > [email protected] build /vercel/path0/apps/web
[13:30:33.644] web:build: > next build
[13:30:33.644] web:build: 
[13:30:34.891] web:build:   ▲ Next.js 14.2.7
[13:30:34.891] web:build:   - Experiments (use with caution):
[13:30:34.891] web:build:     · instrumentationHook
[13:30:34.891] web:build: 
[13:30:34.972] web:build:    Creating an optimized production build ...
[13:30:35.641] web:build: [@sentry/nextjs - Node.js] Warning: No auth token provided. Will not create release. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
[13:30:35.642] web:build: [@sentry/nextjs - Node.js] Warning: No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
[13:30:35.702] web:build: [@sentry/nextjs - Node.js] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[13:30:51.763] web:build: [@sentry/nextjs - Edge] Warning: No auth token provided. Will not create release. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
[13:30:51.763] web:build: [@sentry/nextjs - Edge] Warning: No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
[13:30:51.796] web:build: [@sentry/nextjs - Edge] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[13:30:54.074] web:build: [@sentry/nextjs - Client] Warning: No auth token provided. Will not create release. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
[13:30:54.074] web:build: [@sentry/nextjs - Client] Warning: No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
[13:30:54.083] web:build: [@sentry/nextjs - Client] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[13:30:59.000] web:build:  ✓ Compiled successfully

Locally the build works. With an .env.local that begins with:

SENTRY_AUTH_TOKEN=sntrys_eyJp...

remotely, the SENTRY_AUTH_TOKEN seems to be set in a different format on Vercel, a 64 digit token like a4123...

Expected Result

Stack trace maps to original source code. This used to work with Sentry v7.

Actual Result

Image

Image

Product Area

Issues - Source Maps

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions