peterportal-client icon indicating copy to clipboard operation
peterportal-client copied to clipboard

Migrate to Next?

Open js0mmer opened this issue 1 year ago • 0 comments

Should we consider migrating to Next?

pros:

  • could help cold starts, response times, SSR
    • bit of an anti-pattern to use express for a lambda function
  • ~~currently http://peterportal.org doesn't work since API gateways only allow TLS. this issue should be avoidable under different infrastructure using Next, there might be other ways to solve this though (if we can put the api gateway behind a cloudfront distribution).~~ (#442)

cons:

  • new technology, re-learning required for members
    • additional consideration needed to be taken with client/server components
    • different routing
    • etc.
  • need to look into some other way of handling authentication, sessions (NextAuth?)
    • current setup uses passport/session middleware for Express and it persists between lambda deployments since the session is stored in mongo

js0mmer avatar Oct 14 '23 00:10 js0mmer