Why Nostr? What is Njump?
TechPostsFromX
npub12tg…u9ad
2024-08-16 14:11:09

TechPostsFromX on Nostr: Is it at all possible to do Dynamic imports in Next.js of a server component? I have ...

Is it at all possible to do Dynamic imports in Next.js of a server component?

I have several hundred MDX files I need to import based on their slug - I can't use folder routing for slugs.

I can use generateStaticParams to generate a list of URLs, but the dynamic imports wont work

Any approaches here?


Source: x.com/wesbos/status/1824437678651122028
Author Public Key
npub12tg3narznz500vypswuk6nn6k4xkmuy9xvp66j3u89qsyregvy5sh8u9ad