summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Maik Jablonski <jablonski@neoskop.de> 2022-08-22 17:47:14 +0200
committerGravatar GitHub <noreply@github.com> 2022-08-22 11:47:14 -0400
commit8264f85f1d9c8578b2fdbd84b446500de0f8c22f (patch)
tree2b4ea369857ecce51262ff13bbea08bc97fd0127
parent7820096e1ba29ecc58aa7e13311a255acd2fe977 (diff)
downloadastro-8264f85f1d9c8578b2fdbd84b446500de0f8c22f.tar.gz
astro-8264f85f1d9c8578b2fdbd84b446500de0f8c22f.tar.zst
astro-8264f85f1d9c8578b2fdbd84b446500de0f8c22f.zip
Running Astro as SSG on Vercel without adapter (#4299)
Fixes the 404 handling.
-rw-r--r--packages/integrations/vercel/README.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/integrations/vercel/README.md b/packages/integrations/vercel/README.md
index f7726805b..9507a4fa3 100644
--- a/packages/integrations/vercel/README.md
+++ b/packages/integrations/vercel/README.md
@@ -12,7 +12,15 @@ This adapter allows Astro to deploy your SSR site to [Vercel](https://www.vercel
## Why Astro Vercel
-If you're using Astro as a static site builder—its behavior out of the box—you don't need an adapter.
+If you're using Astro as a static site builder — its behavior out of the box — you don't need an adapter. In order to return the correct status code for non existing pages, you must add the following config file at the root of your project:
+
+ __`vercel.json`__
+```json
+{
+ "cleanUrls": true,
+ "trailingSlash": false
+}
+```
If you wish to [use server-side rendering (SSR)](https://docs.astro.build/en/guides/server-side-rendering/), Astro requires an adapter that matches your deployment runtime.