From the course: Next.js: Creating and Hosting a Full-Stack Site

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Preparing an app for release

Preparing an app for release

- [Instructor] All right, so at this point, we have our eCommerce application pretty much complete. The next thing that we're going to do is we're going to see how we can release this thing onto a platform called Vercel, and once you've done this, the exciting part is you'll be able to see the exact same thing as what we've been seeing here in our browser, but you'll be able to see it from anywhere in the world. Anyway, here's what this is going to look like. The first thing that we're going to need to do, since our application is no longer going to be running on this same URL, is we need to figure out a way to swap out this URL with whatever the URL of our Vercel application happens to be. So the way that we're going to do this is by using environment variables, and I'm just going to copy this URL for now, and we'll go back to here, and what we're going to do is open up a terminal, and I'm just going to go into another one here, and we're going to say export, and we're going to call…

Contents