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
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