> For the complete documentation index, see [llms.txt](https://openai.gitbook.io/code-cheatsheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openai.gitbook.io/code-cheatsheets/react/next/deploying.md).

# Deploying

### Vercel

Using Vercel makes it really easy since they made it and guides they wrote obv like to use it

* Pages that use Static Generation and assets (JS, CSS, images, fonts, etc) will automatically be served from the [Vercel Edge Network](https://vercel.com/smart-cdn), which is blazingly fast.
* Pages that use Server-Side Rendering and API routes will automatically become isolated [Serverless Functions](https://vercel.com/docs/v2/serverless-functions/introduction). This allows page rendering and API requests to scale infinitely.

### Other Hosting

```bash
yarn build #builds prod app in .next folder
yarn start #after building this starts the node.js server
```

## [Static HTML](https://nextjs.org/docs/advanced-features/static-html-export)

If you use no server side generation, you can just export to static html like you would for react build

```bash
next build && next export
```

Check /out
