Skip to content

Commit 192e4ec

Browse files
committed
chore: dont proxy mintlify_assets folder
Signed-off-by: Mark Phelps <[email protected]>
1 parent 9e5bc0d commit 192e4ec

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

worker/src/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ export default {
2525
// This proxies to the actual Mintlify-hosted documentation
2626
const backendUrl = new URL(request.url);
2727
backendUrl.hostname = 'flipt.mintlify.app';
28-
28+
2929
const backendRequest = new Request(backendUrl.toString(), {
3030
method: request.method,
3131
headers: request.headers,
3232
body: request.body,
3333
redirect: 'manual'
3434
});
35-
35+
3636
return fetch(backendRequest);
3737
}
3838

@@ -43,6 +43,7 @@ export default {
4343
"/logo/",
4444
"/snippets/",
4545
"/background.png",
46+
"/mintlify_assets/",
4647
"/_next/",
4748
"/api/",
4849
".xml",
@@ -65,14 +66,14 @@ export default {
6566
// Proxy static assets to the Mintlify backend
6667
const backendUrl = new URL(request.url);
6768
backendUrl.hostname = 'flipt.mintlify.app';
68-
69+
6970
const backendRequest = new Request(backendUrl.toString(), {
7071
method: request.method,
7172
headers: request.headers,
7273
body: request.body,
7374
redirect: 'manual'
7475
});
75-
76+
7677
return fetch(backendRequest);
7778
}
7879

0 commit comments

Comments
 (0)