Next.js Discord

Discord Forum

DYNAMIC_SERVER_USAGE error - How to ignore?

Unanswered
Silky ant posted this in #help-forum
Open in Discord
Avatar
Silky antOP
Is there anyway to get next to ignore a fetch with no-store?

There is no reason for next to throw a DYNAMIC_SERVER_USAGE in this scenario. How can I tell it to ignore this request?

It's a machine token, so there is no user stuff here.

Error: Page changed from static to dynamic at runtime /order/summary/3c0a5d9a-c3b2-4f48-bad8-0645180490b1, reason: no-store fetch https://idp.server.com/oauth/token

2 Replies

Avatar
Silky antOP
Ended up using node-fetch to opt-out of this where it's not needed
Avatar
Does this error come up when you run npm run build @Silky ant