From e8f95cdc17f4c41c5562a307144ed42767afae61 Mon Sep 17 00:00:00 2001 From: Alireza Jahandideh Date: Sun, 14 Mar 2021 15:24:28 -0500 Subject: [PATCH] docs: add Vercel guide --- docs/content/en/guide/Deploy | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/content/en/guide/Deploy diff --git a/docs/content/en/guide/Deploy b/docs/content/en/guide/Deploy new file mode 100644 index 0000000..b138d6a --- /dev/null +++ b/docs/content/en/guide/Deploy @@ -0,0 +1,27 @@ +--- +title: Deploy +description: 'Things you need to know for deployment' +position: 4 +category: Guide +--- + +## Deploy SSR with Vercel + +When deploying Nuxt SSR with Vercel you need to add `.nuxt/dist/sitemap-routes.json` file as `serverFiles`. See the example below: + +```js[vercel.json] +{ + "version": 2, + "builds": [ + { + "src": "nuxt.config.js", + "use": "@nuxtjs/vercel-builder", + "config": { + "serverFiles": [ + ".nuxt/dist/sitemap-routes.json" + ] + } + } + ] +} +```