vercel / react-tweet

Embed tweets in your React application.
https://react-tweet.vercel.app
MIT License
1.52k stars 83 forks source link

'no-store' fetch in `getTweet()` breaks static rendering #66

Closed imtsuki closed 1 year ago

imtsuki commented 1 year ago

https://github.com/vercel-labs/react-tweet/blob/f621e96f470b386dba7240e55be1258400facb13/packages/react-tweet/src/api/get-tweet.ts#L54

In app dir with export const dynamicParams = false, it throws

DynamicServerError: Dynamic server usage: no-store fetch
...
digest: 'DYNAMIC_SERVER_USAGE'
lfades commented 1 year ago

I remember adding this because Next.js cache was not being helpfup during my testing of multiple states. I'll take a look!