From 8691bdc5e239b0093f658c16c2cd72c7ec83cd5b Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Mon, 13 Jun 2022 08:54:13 +0530 Subject: [PATCH] adds rewrites for vercel (#2691) * adds rewrites for vercel * fix invalid source patter * try force redirect for /api/* * revert that --- vercel.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 00000000000..ebeba042747 --- /dev/null +++ b/vercel.json @@ -0,0 +1,12 @@ +{ + "rewrites": [ + { + "source": "/api/(.*)", + "destination": "https://careapi.coronasafe.in/api/$1" + }, + { + "source": "/(.*)", + "destination": "/index.html" + } + ] +}