Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

ignore eslint line

Vasek Mlejnsky10a7bc910513
diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts
index 55961d0da..0f7c8274d 100644
--- a/apps/web/src/middleware.ts
+++ b/apps/web/src/middleware.ts
@@ -62,7 +62,8 @@ export async function middleware(req: NextRequest): Promise<NextResponse> {
// !!! NOTE: Replace has intentionally not completed quotes to catch the rest of the path !!!
const modifiedHtmlBody = replaceUrls(htmlBody, url.pathname, 'href="', '">')
- // Remove the script with cdn.prod.website-files.com hostname
+ // Even though we are paying for a Webflow tier that allows us to remove the badge, it doesn't work.
+ // eslint-disable-next-line
const scriptRegex = /<script src="https:\/\/cdn\.prod\.website-files\.com\/[^\"]*\.js" type="text\/javascript"><\/script>/g
const cleanedHtmlBody = modifiedHtmlBody.replace(scriptRegex, '')