async-labs / saas

Build your own SaaS business with SaaS boilerplate. Productive stack: React, Material-UI, Next, MobX, WebSockets, Express, Node, Mongoose, MongoDB. Written with TypeScript.
https://saas-app.async-await.com
MIT License
4.06k stars 674 forks source link

December 2022 / January 2023 update (done) #193

Open tima101 opened 1 year ago

tima101 commented 1 year ago

getServerSideProps: cannot be used, error: Error: You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.

The withAuth HOC has to retire in its current form. Its authentication logic can be moved to _app.tsx. Example: https://github.com/async-labs/async/blob/main/app/pages/_app.tsx

See: https://github.com/vercel/next.js/discussions/10925