SPA with fallback file
Unanswered
Transvaal lion posted this in #help-forum
Transvaal lionOP
Hello, I have application with URL
When I build with
This is limitation for me - I host website on static hosting, so I must build to static.
Can Next.js handle this scenario? i saw other frameworks handling this well - building static, and including
/news/[slug]. This slug is converted to article detail on client-side while loading component shows, before showing the page.When I build with
output: static, it needs static props, so cannot handle all subpages - would require rebuild each time I add new article.This is limitation for me - I host website on static hosting, so I must build to static.
Can Next.js handle this scenario? i saw other frameworks handling this well - building static, and including
200.html file. By setting this file as fallback file, all URLs can stil load, even if paths are fully dynamic and not pre-rendered during build.1 Reply
Transvaal lionOP
To simplify my question;
It seems Next.js only supports SSR and SSG for dynamic pages. Is that true - no SPA support for dynamic pages?
It seems Next.js only supports SSR and SSG for dynamic pages. Is that true - no SPA support for dynamic pages?