Skip to content

Update Next.js to 16.0.3#2141

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-nextjs-version
Draft

Update Next.js to 16.0.3#2141
Copilot wants to merge 2 commits intomainfrom
copilot/update-nextjs-version

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 24, 2025

Updates Next.js from 15.2.4 to 16.0.3 with required dependency upgrades.

Dependency Updates

Core:

  • Next.js: 15.2.4 → 16.0.3
  • @sentry/nextjs: 9.8.0 → 10.26.0
  • @sentry/cli: 1.77.3 → 2.58.2

OpenTelemetry SDK v2 (required by @vercel/otel 2.1.0):

  • @vercel/otel: 1.10.1 → 2.1.0
  • All @opentelemetry/instrumentation*: 0.57.2 → 0.208.0
  • All @opentelemetry/sdk-*: 1.30.1/0.57.2 → 2.2.0/0.208.0
  • @opentelemetry/resources: 1.30.1 → 2.2.0
  • @opentelemetry/semantic-conventions: 1.30.0 → 1.38.0

Breaking Changes Fixed

Sentry 10.x: Removed skipOpenTelemetrySetup option from NodeClient constructors (no longer exists in NodeClientOptions). Option remains available in Sentry.init().

 const nodeClient = new NodeClient({
   dsn: env.NEXT_PUBLIC_SENTRY_DSN,
   environment: env.ENV,
-  skipOpenTelemetrySetup: true,
   integrations: [...getDefaultIntegrationsWithoutPerformance()],
 });

OpenTelemetry SDK v2: Resource changed from class to interface. Use factory function:

-import { Resource } from "@opentelemetry/resources";
+import { resourceFromAttributes } from "@opentelemetry/resources";

-resource: new Resource({ [ATTR_SERVICE_NAME]: "..." })
+resource: resourceFromAttributes({ [ATTR_SERVICE_NAME]: "..." })

Compatibility

React 18.2.0 remains compatible with Next.js 16.0.3 (supports both React 18.2+ and 19.0+).

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • downloads.sentry-cdn.com
    • Triggering command: /usr/local/bin/node node ./scripts/install.js (dns block)
  • o1.ingest.sentry.io
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/apps/apps/apps/stripe/node_modules/.bin/../next/dist/bin/next build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

update nextjs


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Nov 24, 2025

⚠️ No Changeset found

Latest commit: beeba01

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown

vercel bot commented Nov 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
saleor-app-avatax Ready Ready Preview Nov 24, 2025 2:57pm
saleor-app-cms Ready Ready Preview Nov 24, 2025 2:57pm
saleor-app-klaviyo Ready Ready Preview Comment Nov 24, 2025 2:57pm
saleor-app-payment-np-atobarai Ready Ready Preview Nov 24, 2025 2:57pm
saleor-app-payment-stripe Ready Ready Preview Comment Nov 24, 2025 2:57pm
saleor-app-products-feed Ready Ready Preview Nov 24, 2025 2:57pm
saleor-app-search Ready Ready Preview Nov 24, 2025 2:57pm
saleor-app-segment Ready Ready Preview Nov 24, 2025 2:57pm
saleor-app-smtp Ready Ready Preview Nov 24, 2025 2:57pm

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

- Updated Next.js from 15.2.4 to 16.0.3
- Updated @sentry/nextjs from 9.8.0 to 10.26.0
- Updated @sentry/cli from 1.77.3 to 2.58.2
- Updated OpenTelemetry packages to v2 for Next.js 16 compatibility
  - @opentelemetry/api-logs: 0.57.2 → 0.208.0
  - @opentelemetry/exporter-*: 0.57.2 → 0.208.0
  - @opentelemetry/instrumentation: 0.57.2 → 0.208.0
  - @opentelemetry/instrumentation-aws-sdk: 0.49.1 → 0.64.0
  - @opentelemetry/resources: 1.30.1 → 2.2.0
  - @opentelemetry/sdk-*: 1.30.1/0.57.2 → 2.2.0/0.208.0
  - @opentelemetry/semantic-conventions: 1.30.0 → 1.38.0
- Updated @vercel/otel from 1.10.1 to 2.1.0
- Removed skipOpenTelemetrySetup option from NodeClient configs (not supported in Sentry 10.x)
- Updated Resource API call to use resourceFromAttributes (OpenTelemetry SDK v2 breaking change)

Co-authored-by: lkostrowski <9268745+lkostrowski@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Next.js to latest version Update Next.js to 16.0.3 Nov 24, 2025
Copilot AI requested a review from lkostrowski November 24, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants