#MDX bundler now supports MDX v2
1 messages · Page 1 of 1 (latest)
Hi @round oar
one question on MDX bundler
if you can help with
if i make a change in mdx post, it will rerender the whole post web page on server side on each request?
i am comparing it to normal MDX engine of nextJS which is currently generating static pages of each post at build time
so it can super fast
It depends on how you use getStaticProps and getStaticPaths, could be staticly generated as well with mdx-bundler.
humm
my only worry is if i make it dynamic(all mdx posts in database) then all rerendering would be done at each request on server
which will be very slow and not scalable
but i am azure docker containers to serve
not vercel
if the feature is specific to vercel, then can't use it
It's not a vercel feature.
gr8
If you set paths to include all the routes, revalidate to infinite, fallback to blocking, that basically replicates the build time cache behavior you're looking for.
As a bonus, with fallback: "blocking" any new blog you have in your database would render at request, then cached, without having to recompile.
if you might update your blogs frequently, then you might want to reduce the revalidate time.
Personally I used next-mdx-remote, since that's more purposefully built for Next.
They have slightly different behavior, but either should work.
i can achieve above in MDX-remote as well?
yes. I haven't compared them recently, but remote might be a bit better for the build caching.