Next.js Discord

Discord Forum

Can you skip prerender of routes in Next 13?

Common Crane posted this in #help-forum
Open in Discord
Common CraneOP
I have a lot of routes that are about 90% dynamically built by CMS. This CMS is not available during build, but only during runtine. Is there a way to skip the prerender for defined routes, because it always fails the build, which means I have to add the following prop:

export const dynamic = 'force-dynamic'

I would however still cache the sites for lets say 1hr before revalidating, but I think this doesn't allow me to do so.
Is there any solution for that?

0 Replies