Menu

1 / 2

Will the new navigation break the dashboard that upgrades next month?

DEV Community: nextjs·Tariq Khan·about 6 hours ago
#7MhHIu8Z
#devtonextjs#devto#dev#remote#host
Long article (409 words) — no AI summary yet.
Reading 0:00
15s threshold

Tariq Khan

Posted on Dec 6

Edited on Dec 6

AI-assisted

The platform team is ready to deploy a new navigation bar. The admin dashboard still ships version 2.1 of the design system. The customer portal is already on 2.4. The person approving the release has one question: which of those apps can actually run this build?

When a Next.js host loads a remote component at runtime, the remote can ship on its own schedule. That makes this question part of releasing the remote. Here's how I'd answer it before touching the live deployment.

Put the minimum version in the remote

Say the new navigation uses a focus-management API introduced in version 2.4. For a Vite remote using nextFederationComponents() , I'd declare it like this:

shared : { 'example-design-system' : { requiredVersion : '^2.4.0' } , }

Enter fullscreen mode

Exit fullscreen mode

The dashboard's 2.1 installation is outside that range. The portal's 2.4 installation satisfies it. Hosts declare the actual versions they provide.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.