Nuxt/docs/content/2.guide/5.deployment/4.netlify.md
Daniel Roe 0e4def19f8
docs: update deployment urls & azure instructions (#4193)
* docs: update deployment urls & azure instructions

* style: lint
2022-04-08 14:59:35 +02:00

1.2 KiB

icon
LogoNetlify

Netlify

How to deploy Nuxt to Netlify.

::list

  • Support for serverless SSR build
  • Auto-detected when deploying
  • No configuration required ::

Setup

Nitro will auto-detect that you are in a Netlify environment and build the correct version of your Nuxt server. For new sites, Netlify will detect that you are using Nuxt 3 or bridge and set the publish directory to dist and build command to npm run build. If you are upgrading an existing site you should check these and update them if needed.

Normally, the deployment to Netlify does not require any configuration. However, if you want to add custom redirects, you can do so by adding a _redirects file in the public directory.

Deployment

Just push to your git repository as you would normally do for Netlify.

More information

See more information on the Lambda preset for full details.

Demo

A live demo is available on https://nitro-deployment.netlify.app/.