mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-01 18:07:22 +00:00
docs: update links to nitro.unjs.io (#6684)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
This commit is contained in:
parent
f33516612c
commit
657719f689
@ -6,7 +6,7 @@ Each file should export a default function defined with `defineEventHandler()`.
|
|||||||
|
|
||||||
The handler can directly return JSON data, a `Promise` or use `event.res.end()` to send response.
|
The handler can directly return JSON data, a `Promise` or use `event.res.end()` to send response.
|
||||||
|
|
||||||
::ReadMore{link="https://nitro.unjs.io/guide/routing.html" title="Nitro Route Handling Docs"}
|
::ReadMore{link="https://nitro.unjs.io/guide/introduction/routing" title="Nitro Route Handling Docs"}
|
||||||
::
|
::
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
@ -164,7 +164,7 @@ export default defineEventHandler((event) => {
|
|||||||
|
|
||||||
### Nitro Configuration
|
### Nitro Configuration
|
||||||
|
|
||||||
You can use `nitro` key in `nuxt.config` to directly set [Nitro configuration](https://nitro.unjs.io/guide/config).
|
You can use `nitro` key in `nuxt.config` to directly set [Nitro configuration](https://nitro.unjs.io/config).
|
||||||
|
|
||||||
::alert{type=warning}
|
::alert{type=warning}
|
||||||
This is an advanced option. Custom config can affect production deployments, as the configuration interface might change over time when Nitro is upgraded in semver-minor versions of Nuxt.
|
This is an advanced option. Custom config can affect production deployments, as the configuration interface might change over time when Nitro is upgraded in semver-minor versions of Nuxt.
|
||||||
@ -229,7 +229,7 @@ Never combine `next()` callback with a legacy middleware that is `async` or retu
|
|||||||
|
|
||||||
### Server Storage
|
### Server Storage
|
||||||
|
|
||||||
Nitro provides a cross-platform [storage layer](https://nitro.unjs.io/guide/storage.html). In order to configure additional storage mount points, you can use `nitro.storage`.
|
Nitro provides a cross-platform [storage layer](https://nitro.unjs.io/guide/introduction/storage). In order to configure additional storage mount points, you can use `nitro.storage`.
|
||||||
|
|
||||||
#### Example: Using Redis
|
#### Example: Using Redis
|
||||||
|
|
||||||
|
@ -51,4 +51,4 @@ module.exports = {
|
|||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
:ReadMore{link="https://nitro.unjs.io/deploy/node.html" title="the Nitro documentation for node-server preset"}
|
:ReadMore{link="https://nitro.unjs.io/deploy/node" title="the Nitro documentation for node-server preset"}
|
||||||
|
@ -18,7 +18,7 @@ Or directly use the `NITRO_PRESET` environment variable when running `nuxt build
|
|||||||
NITRO_PRESET=node-server nuxt build
|
NITRO_PRESET=node-server nuxt build
|
||||||
```
|
```
|
||||||
|
|
||||||
🔎 Check [the Nitro deployment](https://nitro.unjs.io/deploy/) for all possible deployment presets and providers.
|
🔎 Check [the Nitro deployment](https://nitro.unjs.io/deploy) for all possible deployment presets and providers.
|
||||||
|
|
||||||
## Supported Hosting Providers
|
## Supported Hosting Providers
|
||||||
|
|
||||||
|
@ -8,4 +8,4 @@ How to deploy Nuxt to [AWS Lambda](https://aws.amazon.com/lambda/)
|
|||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
:ReadMore{link="https://nitro.unjs.io/deploy/providers/aws.html" title="the Nitro documentation for AWS deployment"}
|
:ReadMore{link="https://nitro.unjs.io/deploy/providers/aws" title="the Nitro documentation for AWS deployment"}
|
||||||
|
@ -15,4 +15,4 @@ How to deploy to [Azure Static Web Apps](https://azure.microsoft.com/en-us/servi
|
|||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
:ReadMore{link="https://nitro.unjs.io/deploy/providers/azure.html" title="the Nitro documentation for Azure deployment"}
|
:ReadMore{link="https://nitro.unjs.io/deploy/providers/azure" title="the Nitro documentation for Azure deployment"}
|
||||||
|
@ -15,4 +15,4 @@ How to deploy Nuxt to [Cloudflare Workers](https://workers.cloudflare.com/).
|
|||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
:ReadMore{link="https://nitro.unjs.io/deploy/providers/cloudflare.html" title="the Nitro documentation for Cloudflare deployment"}
|
:ReadMore{link="https://nitro.unjs.io/deploy/providers/cloudflare" title="the Nitro documentation for Cloudflare deployment"}
|
||||||
|
@ -8,4 +8,4 @@ Nitro supports deploying on the [Digital Ocean App Platform](https://docs.digita
|
|||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
:ReadMore{link="https://nitro.unjs.io/deploy/providers/digitalocean.html" title="the Nitro documentation for DigitalOcean deployment"}
|
:ReadMore{link="https://nitro.unjs.io/deploy/providers/digitalocean" title="the Nitro documentation for DigitalOcean deployment"}
|
||||||
|
@ -12,4 +12,4 @@ Nitro supports [Firebase Hosting](https://firebase.google.com/docs/hosting) with
|
|||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
:ReadMore{link="https://nitro.unjs.io/deploy/providers/firebase.html" title="the Nitro documentation for Firebase deployment"}
|
:ReadMore{link="https://nitro.unjs.io/deploy/providers/firebase" title="the Nitro documentation for Firebase deployment"}
|
||||||
|
@ -8,4 +8,4 @@ How to deploy Nuxt to [Heroku](https://www.heroku.com/).
|
|||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
:ReadMore{link="https://nitro.unjs.io/deploy/providers/heroku.html" title="the Nitro documentation for Heroku deployment"}
|
:ReadMore{link="https://nitro.unjs.io/deploy/providers/heroku" title="the Nitro documentation for Heroku deployment"}
|
||||||
|
@ -10,4 +10,4 @@ Layer0 extends the capabilities of a traditional CDN by not only hosting your st
|
|||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
:ReadMore{link="https://nitro.unjs.io/deploy/providers/layer0.html" title="the Nitro documentation for Layer0 deployment"}
|
:ReadMore{link="https://nitro.unjs.io/deploy/providers/layer0" title="the Nitro documentation for Layer0 deployment"}
|
||||||
|
@ -38,4 +38,4 @@ If you want to add custom redirects, you can do so by adding a [`_redirects`](ht
|
|||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
:ReadMore{link="https://nitro.unjs.io/deploy/providers/netlify.html" title="the Nitro documentation for Netlify deployment"}
|
:ReadMore{link="https://nitro.unjs.io/deploy/providers/netlify" title="the Nitro documentation for Netlify deployment"}
|
||||||
|
@ -8,4 +8,4 @@ How to deploy Nuxt to [Render](https://render.com/)
|
|||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
:ReadMore{link="https://nitro.unjs.io/deploy/providers/render.html" title="the Nitro documentation for Render deployment"}
|
:ReadMore{link="https://nitro.unjs.io/deploy/providers/render" title="the Nitro documentation for Render deployment"}
|
||||||
|
@ -8,4 +8,4 @@ How to deploy Nuxt to [StormKit](https://www.stormkit.io/).
|
|||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
:ReadMore{link="https://nitro.unjs.io/deploy/providers/stormkit.html" title="the Nitro documentation for StormKit deployment"}
|
:ReadMore{link="https://nitro.unjs.io/deploy/providers/stormkit" title="the Nitro documentation for StormKit deployment"}
|
||||||
|
@ -38,4 +38,4 @@ vercel
|
|||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
:ReadMore{link="https://nitro.unjs.io/deploy/providers/vercel.html" title="the Nitro documentation for Vercel deployment"}
|
:ReadMore{link="https://nitro.unjs.io/deploy/providers/vercel" title="the Nitro documentation for Vercel deployment"}
|
||||||
|
@ -13,7 +13,7 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* Nitro server handlers.
|
* Nitro server handlers.
|
||||||
*
|
*
|
||||||
* @see https://nitro.unjs.io/guide/routing.html
|
* @see https://nitro.unjs.io/guide/introduction/routing
|
||||||
*
|
*
|
||||||
* **Note:** Files from `server/api`, `server/middleware` and `server/routes` will be automatically registred by Nuxt.
|
* **Note:** Files from `server/api`, `server/middleware` and `server/routes` will be automatically registred by Nuxt.
|
||||||
*
|
*
|
||||||
@ -25,7 +25,7 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* Nitro development-only server handlers.
|
* Nitro development-only server handlers.
|
||||||
*
|
*
|
||||||
* @see https://nitro.unjs.io/guide/routing.html
|
* @see https://nitro.unjs.io/guide/introduction/routing
|
||||||
*
|
*
|
||||||
* @type {typeof import('nitropack')['NitroDevEventHandler'][]}
|
* @type {typeof import('nitropack')['NitroDevEventHandler'][]}
|
||||||
* @version 3
|
* @version 3
|
||||||
|
Loading…
Reference in New Issue
Block a user