From 63174b0ed1d5423e5aa444ff70686bae2a18bdd9 Mon Sep 17 00:00:00 2001 From: Ole Eskild Steensen Date: Fri, 6 Jan 2023 15:08:51 +0100 Subject: [PATCH] Add 404 support to vercel deployments --- vercel.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index b971a8f..1b32bb1 100644 --- a/vercel.json +++ b/vercel.json @@ -1,5 +1,9 @@ { "outputDirectory": "dist", "installCommand": "npm install", - "buildCommand": "npm run build" + "buildCommand": "npm run build", + "routes": [ + { "handle": "filesystem" }, + { "src": "/(.*)", "status": 404, "dest": "/404" } + ] } \ No newline at end of file