~/talk

Do You Even Need That Express Custom Server Any More?

Talkat Next.js Conf 2020 · on Tuesday, 2020-10-27· [nodejs, web-platform]
slides:none on file

Concrete migration steps and working examples that replace an Express custom server with Next API routes: show secure env vars via a root .env, deploy serverless routes to Vercel, and migrate Express server to Next API routes with the same GET/POST/dynamic handlers. Demonstrate MongoDB + Mongoose adjustments (connection reuse and a mongoose connection guard plus try/catch model compilation) and replicate auth using Auth0 with nextjs-auth0 cookie auth. All examples compile and run locally and on Vercel as serverless functions.

AI-written summary · about

  1. 0:00Start
  2. 1:04Query the data
  3. 15:41Serverless
  4. 20:04Keeping secrets
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.