saas
saas copied to clipboard
December 2022 / January 2023 update (done)
- [x] packages, node, yarn, next.config.js, helmet, mongoSessionStore.create, MONGO_URL, node-fetch, stripe.ts, highlight.js, mongoose.set, LRU.ttl
- [x] comments on "shared initial data" and "per-page data" (Chapter 7)
- [x] instructions for serverless v3 (Chapter 9)
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