0

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 Answers2

0

Don't use getServerSideProps. Do use getStaticProps.

Then run npm build and deploy the generated files.

The documentation has further reading on the subject.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
-1

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.

Fabio Nettis
  • 1,150
  • 6
  • 18