skip to Main Content

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


  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.

    Login or Signup to reply.
  2. Don’t use getServerSideProps. Do use getStaticProps.

    Then run npm build and deploy the generated files.

    The documentation has further reading on the subject.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search