From the course: Next.js Ecommerce: Build a Shopping Platform from Scratch

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Serverless environment config

Serverless environment config

All right, guys. So this is something that is kind of annoying that we have to do. It's just adding some configuration for serverless environments. Because what I want to do is I want to deploy soon. And that's different from what we usually do, which is just do the whole project locally, and then we do the deployment at the very end. However, I wanted to make this course more real life, more like what you would actually do building something like this. And you would most likely deploy in increments and set up continuous deployment where when you push to GitHub, it'll automatically update your production site on, in our case, Vercel. Now, Vercel is a serverless platform. And there's a little bit of configuration we have to do and a couple packages we need to install to basically make our website and make the NEON database function correctly and Prisma to function correctly with a serverless environment. So this page here on NEON kind of explains a lot as far as what we have to do for…

Contents