Next.js Discord

Discord Forum

Next.js 14 headless?

Answered
Burmese posted this in #help-forum
Open in Discord
Avatar
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

Avatar
Ray
Yes, by default the page is static generated in app router
Answer
Avatar
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?
Avatar
Ray
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
Avatar
BurmeseOP
Oh okay thanks for the clarification. Is there any documentation regarding ISR?