Skip to content

Commit a1d4740

Browse files
committed
[Chore] Fix /api 404
1 parent 2cf616c commit a1d4740

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/validate-redirects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function main() {
2727
numUrlsWithFragment++;
2828
}
2929

30-
if (!validEndings.some((ending) => from.endsWith(ending))) {
30+
if (!validEndings.some((ending) => from.endsWith(ending)) && from != "/api") {
3131
console.log(`✘ Found unslashed source URLs:\n ${from}`);
3232
numNonSlashedRedirects++;
3333
}

public/__redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# homepage
22
/docs/ /directory/ 301
3+
/api /api/ 301
34
/products/ /directory/ 301
45
/zero-trust/ /products/?product-group=Cloudflare+One 301
56
/dashboard-landing/ / 301

0 commit comments

Comments
 (0)