storyblok / nextjs-multilanguage-website

Nextjs Multilanguage Website
https://www.storyblok.com/tp/next-js-react-guide
144 stars 53 forks source link

New pages yield "Not found" when being rendered #52

Open wirtsi opened 2 years ago

wirtsi commented 2 years ago

It appears that I cannot create new pages with the new react bridge. Existing pages work fine.

When creating a new page, I get this screen image

The call to the local dev is http://localhost:3001/testing?_storyblok=156628498&_storyblok_c=page&_storyblok_tk[space_id]=163095&_storyblok_tk[timestamp]=1656497155&_storyblok_tk[token]=49fef469860d0d16298a02581c815f597130ee82&_storyblok_version=&_storyblok_lang=default&_storyblok_release=0

I guess this error stems from the /testing URL not being present at compile time .. and Next uses ISR to build the pages, it renders the 404 page

wirtsi commented 2 years ago

Ok, so I found this document. Apparently you need to work with the preview mode if you want to make this work with ISR/SSG. This should probably covered in the this tutorial