Next.js 14 headless?
Answered
Burmese posted this in #help-forum
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
7 Replies
Yes, by default the page is static generated in app router
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?
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 14but in the page folder
BurmeseOP
Oh okay thanks for the clarification. Is there any documentation regarding ISR?