So I want to learn how to disable NextJS ssr and host it on unsupported ssr hosting. I’m searching the internet to see if SSR can be fully disabled in NextJS by using NextPages, not NextApp, but I still don’t know the truth because of a lack of documentation.
2
Answers
No there is not. Also, if there was, it would defy the purpose of using Next.js at all, because that is not what it was designed for. If you need a client-side only application you are probably better off using something like create-react-app.
Don’t use
getServerSideProps
. Do usegetStaticProps
.Then run
npm build
and deploy the generated files.The documentation has further reading on the subject.