We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cf616c commit a1d4740Copy full SHA for a1d4740
bin/validate-redirects.ts
@@ -27,7 +27,7 @@ async function main() {
27
numUrlsWithFragment++;
28
}
29
30
- if (!validEndings.some((ending) => from.endsWith(ending))) {
+ if (!validEndings.some((ending) => from.endsWith(ending)) && from != "/api") {
31
console.log(`✘ Found unslashed source URLs:\n ${from}`);
32
numNonSlashedRedirects++;
33
public/__redirects
@@ -1,5 +1,6 @@
1
# homepage
2
/docs/ /directory/ 301
3
+/api /api/ 301
4
/products/ /directory/ 301
5
/zero-trust/ /products/?product-group=Cloudflare+One 301
6
/dashboard-landing/ / 301
0 commit comments