From f80f56a2bb6fcb4de7341c3c637f1a4ce9c21384 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 10 Nov 2022 18:11:04 +0000 Subject: [PATCH] Add 404 catch-all handler for SPA. --- vercel.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 0cae358a..07b3573c 100644 --- a/vercel.json +++ b/vercel.json @@ -1,5 +1,12 @@ { "github": { "silent": true - } + }, + "routes": [ + { + "src": "/[^.]+", + "dest": "/", + "status": 200 + } + ] }