Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Revert the hack for removing webflow branding

Vasek Mlejnsky9dd6d3fdd1bb
diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts
index 0f7c8274d..3abf3ef1c 100644
--- a/apps/web/src/middleware.ts
+++ b/apps/web/src/middleware.ts
@@ -62,12 +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="', '">')
- // 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, '')
- return new NextResponse(cleanedHtmlBody, {
+ return new NextResponse(modifiedHtmlBody, {
status: res.status,
statusText: res.statusText,
headers: res.headers,