Next.js Discord

Discord Forum

Next.js 14 headless?

Answered
Burmese posted this in #help-forum
Open in Discord
BurmeseOP
I came across this article which uses next.js 13 if I'm not mistaken (getStaticProps) - Is there support for a headless environment using next.js 14? This is the article I read - https://vercel.com/guides/wordpress-with-vercel
Answered by Ray
Yes, by default the page is static generated in app router
View full answer

7 Replies

Answer
BurmeseOP
Oh so I can simply use server actions and fetch the data? How does ISR work, is there a new approach since getStaticProps is no longer supported in v14?
@Burmese Oh so I can simply use server actions and fetch the data? How does ISR work, is there a new approach since getStaticProps is no longer supported in v14?
You fetch the data directly in the server component. ISR work like the same way as page router does
And getStaticProps is still being supported in next 14
but in the page folder
BurmeseOP
Oh okay thanks for the clarification. Is there any documentation regarding ISR?