Is the Custom Server feature of Next.js going to be deprecated?February 8, 2020 at 5:53pm
We're about to start a new project that requires SAML authentication and we've traditionally implemented this with Passport.js. I was going to suggest Next.js with a custom express server, but I've seen multiple people lately allude to or even state outright that the custom server feature of Next.js is on its way to deprecation in favor of API routes, serverless functions, etc.
Can anyone confirm or deny that?
February 8, 2020 at 9:24pm
I can't confirm yay or nay on your exact question, but I can confirm that you can still use Passport without needing a custom server. I have a working example of Passport on API routes authenticating with Github and email, as well as session storage using MongoDB I could probably whip up into a tutorial of some kind if you'd like.
February 9, 2020 at 7:05pm
Next.js will likely always work within a "custom server", but its APIs are frozen. No new features/APIs will be added for custom servers.
Thanks, , that helps.