Skip to content

Commit

Permalink
docs: add custom redirects for netlify deployment nuxt#3553)
Browse files Browse the repository at this point in the history
tobiasdiez authored Mar 8, 2022
1 parent 3d5b695 commit 0f2cba5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/content/3.docs/3.deployment/4.netlify.md
Original file line number Diff line number Diff line change
@@ -17,6 +17,9 @@ How to deploy Nuxt to Netlify.

Nitro will auto-detect that you are in a [Netlify](https://www.netlify.com) 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`](https://docs.netlify.com/routing/redirects/#syntax-for-the-redirects-file) file in the [`public`](/docs/directory-structure/public) directory.

## Deployment

Just push to your git repository [as you would normally do for Netlify](https://docs.netlify.com/configure-builds/get-started/).

0 comments on commit 0f2cba5

Please sign in to comment.