try rewriting only non-ISR endpoints
This commit is contained in:
@@ -26,16 +26,16 @@ export default async (req, res) => {
|
||||
case "/api":
|
||||
api(req, res);
|
||||
break;
|
||||
case "/api-rewrite/gist":
|
||||
case "/api/gist":
|
||||
gist(req, res);
|
||||
break;
|
||||
case "/api-rewrite/pin":
|
||||
case "/api/pin":
|
||||
pin(req, res);
|
||||
break;
|
||||
case "/api-rewrite/top-langs":
|
||||
case "/api/top-langs":
|
||||
topLangs(req, res);
|
||||
break;
|
||||
case "/api-rewrite/wakatime":
|
||||
case "/api/wakatime":
|
||||
wakatime(req, res);
|
||||
break;
|
||||
case "/api-rewrite/repeat-recent":
|
||||
|
||||
+6
-2
@@ -2,8 +2,12 @@
|
||||
"buildCommand": "npm install && mkdir --parents .vercel/output/functions/api.func/ && cp --recursive ./* .vercel/output/functions/api.func/ && cp --recursive .vercel/output/functions/api.func/_dot_vercel_copy/output/ .vercel/",
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/api/:match*",
|
||||
"destination": "/api-rewrite/:match*"
|
||||
"source": "/api/status/:match*",
|
||||
"destination": "/api-rewrite/status/:match*"
|
||||
},
|
||||
{
|
||||
"source": "/api/repeat-recent:match*",
|
||||
"destination": "/api-rewrite/repeat-recent:match*"
|
||||
}
|
||||
],
|
||||
"redirects": [
|
||||
|
||||
Reference in New Issue
Block a user