Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next-intl Link triggers DYNAMIC_SERVER_USAGE error #1698

Closed
3 tasks done
brightonmike opened this issue Feb 4, 2025 · 0 comments
Closed
3 tasks done

next-intl Link triggers DYNAMIC_SERVER_USAGE error #1698

brightonmike opened this issue Feb 4, 2025 · 0 comments
Labels
bug Something isn't working unconfirmed Needs triage.

Comments

@brightonmike
Copy link

brightonmike commented Feb 4, 2025

Description

This is only happening when I deploy to Netlify i.e. in a production environment, so a little tricky to provide a reproduction here. Might be because I don't generate any paths at build time.

However I have added a sandbox which contains the exact component where I am importing the Link component provided by next-intl.

Without this, I do not get any DYNAMIC_SERVER_USAGE errors within Netlify.
With it, I am getting a lot of these errors.

I can't reproduce this problem locally.

I would say I am using my component in a mixture of server/client components, however itself it's a client component, so I'm not sure this should be a problem.

I am very new to RSC/App Router however so there may be a quirk I'm missing here.

Verifications

Mandatory reproduction URL

https://codesandbox.io/p/devbox/cool-surf-27q97h

Reproduction description

Steps to reproduce:

  1. Use next-intl Link within Netlify

Expected behaviour

DYNAMIC_SERVER_USAGE should not be triggered.

@brightonmike brightonmike added bug Something isn't working unconfirmed Needs triage. labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

1 participant