In this section we'll see how to publish
our website to production.
There are a few ways to deploy a Next.js app.
We touched on this before, but
if you only have static pages,
like in our Reviews project at the moment,
then you can do a Static Export.
This will give you a folder with all
the HTML and JavaScript files,
that you can then upload to any web server.
It could be your own server,
or any of the myriad of hosting platforms
that support static websites.
So, a Static Export gives you
the greatest flexibility
when it comes to where you can publish your app.
The alternative is to deploy
your full Next.js project,
with all the code running in a Node.js server.
Again, you can set up your own server,
or you can use one of a few platforms
that support Next.js.
Running the full app code is necessary
if you want full-stack features
such as server-side rendering.
But even if you have a purely static website,
like in our case,
using a fully hosted solution like Vercel
could still be the simplest option.
That's why I'll show you this approach first,
in the next video.
If you want greater flexibility,
we'll then see how to do a Static Export,
and also how to upload the output
to a hosting platform.
We'll use Netlify for that, just as an example.
If you want to run your own servers,
that requires some system administration skills,
and that's a bit outside the scope of this course
so I won't show you how to do that,
but I will provide you with an article with
some useful links if you're interested.