From cdf6a8807415836f6e71c8fb836a40df2d156cb7 Mon Sep 17 00:00:00 2001 From: lilnasy <69170106+lilnasy@users.noreply.github.com> Date: Wed, 3 Jan 2024 14:24:37 +0000 Subject: [PATCH] include 404.html as fallback --- packages/integrations/vercel/src/static/adapter.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/integrations/vercel/src/static/adapter.ts b/packages/integrations/vercel/src/static/adapter.ts index cbd7cb51ad93c..93e3bf4b2faca 100644 --- a/packages/integrations/vercel/src/static/adapter.ts +++ b/packages/integrations/vercel/src/static/adapter.ts @@ -118,6 +118,11 @@ export default function vercelStatic({ continue: true, }, { handle: 'filesystem' }, + { + src: `/*`, + dest: `/404.html`, + status: 404, + } ], ...(imageService || imagesConfig ? {