diff --git a/.changeset/preview-vercel-404.md b/.changeset/preview-vercel-404.md new file mode 100644 index 000000000..bf3483db2 --- /dev/null +++ b/.changeset/preview-vercel-404.md @@ -0,0 +1,5 @@ +--- +"@tabler/preview": patch +--- + +Fixed Vercel deployment to serve `error-404.html` as the custom 404 page. diff --git a/preview/vercel.json b/preview/vercel.json index c01656139..4c9042c2a 100644 --- a/preview/vercel.json +++ b/preview/vercel.json @@ -1,5 +1,15 @@ { - "redirects": [ - { "source": "/marketing", "destination": "/marketing.html", "permanent": true } + "routes": [ + { + "src": "/marketing", + "status": 308, + "headers": { "Location": "/marketing.html" } + }, + { "handle": "filesystem" }, + { + "src": "/(.*)", + "status": 404, + "dest": "/error-404.html" + } ] }