diff --git a/docs/1.getting-started/10.deployment.md b/docs/1.getting-started/10.deployment.md index adf9552c4a..426cac538d 100644 --- a/docs/1.getting-started/10.deployment.md +++ b/docs/1.getting-started/10.deployment.md @@ -7,7 +7,7 @@ navigation.icon: i-ph-cloud-duotone A Nuxt application can be deployed on a Node.js server, pre-rendered for static hosting, or deployed to serverless or edge (CDN) environments. ::callout -If you are looking for a list of cloud providers that support Nuxt 3, see the [Hosting providers](#hosting-providers) section. +If you are looking for a list of cloud providers that support Nuxt 3, see the [Hosting providers](/deployments) section. :: ## Node.js Server @@ -40,7 +40,7 @@ It respects the following runtime environment variables: To use `pm2`, use an `ecosystem.config.js`: -```js [ecosystem.config.js] +```ts [ecosystem.config.js] module.exports = { apps: [ { @@ -133,7 +133,7 @@ Read more about pre-rendering in the Nitro documentation. If you don't want to pre-render your routes, another way of using static hosting is to set the `ssr` property to `false` in the `nuxt.config` file. The `nuxi generate` command will then output an `.output/public/index.html` entrypoint and JavaScript bundles like a classic client-side Vue.js application. ```ts [nuxt.config.ts] -defineNuxtConfig({ +export default defineNuxtConfig({ ssr: false }) ``` @@ -142,161 +142,7 @@ defineNuxtConfig({ Nuxt 3 can be deployed to several cloud providers with a minimal amount of configuration: -::card-group - ::card - --- - title: AWS Amplify Hosting - icon: i-simple-icons-awsamplify - to: https://nitro.unjs.io/deploy/providers/aws-amplify - target: \_blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: AWS Lambda - icon: i-simple-icons-amazonaws - to: https://nitro.unjs.io/deploy/providers/aws - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: Azure - icon: i-simple-icons-microsoftazure - to: https://nitro.unjs.io/deploy/providers/azure - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: Cleavr - icon: i-ph-cloud-duotone - to: https://nitro.unjs.io/deploy/providers/cleavr - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: Deno Deploy - icon: i-simple-icons-deno - to: https://nitro.unjs.io/deploy/providers/deno-deploy - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: CloudFlare - icon: i-simple-icons-cloudflare - to: https://nitro.unjs.io/deploy/providers/cloudflare - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: DigitalOcean - icon: i-simple-icons-digitalocean - to: https://nitro.unjs.io/deploy/providers/digitalocean - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: Edgio - icon: i-ph-cloud-duotone - to: https://nitro.unjs.io/deploy/providers/edgio - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: Firebase - icon: i-simple-icons-firebase - to: https://nitro.unjs.io/deploy/providers/firebase - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: Flightcontrol - icon: i-ph-cloud-duotone - to: https://nitro.unjs.io/deploy/providers/flightcontrol - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: GitHub Pages - icon: i-simple-icons-github - to: https://nitro.unjs.io/deploy/providers/github-pages - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: Heroku - icon: i-simple-icons-heroku - to: https://nitro.unjs.io/deploy/providers/heroku - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: Lagon - icon: i-ph-cloud-duotone - to: https://nitro.unjs.io/deploy/providers/lagon - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: Netlify - icon: i-simple-icons-netlify - to: https://nitro.unjs.io/deploy/providers/netlify - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: Render - icon: i-simple-icons-render - to: https://nitro.unjs.io/deploy/providers/render - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: Stormkit - icon: i-ph-cloud-duotone - to: https://nitro.unjs.io/deploy/providers/stormkit - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: - ::card - --- - title: Vercel - icon: i-simple-icons-vercel - to: https://nitro.unjs.io/deploy/providers/vercel - target: _blank - ui.icon.base: 'text-black dark:text-white' - --- - :: -:: +:read-more{to="/deployments"} ## Presets