diff --git a/apps/web/src/app/hostnames.ts b/apps/web/src/app/hostnames.ts index 133e76861..1ee4e0893 100644 --- a/apps/web/src/app/hostnames.ts +++ b/apps/web/src/app/hostnames.ts @@ -1,5 +1,5 @@ // We are in the process of migrating to the new landing page hosting. -export const landingPageWebflowHostname = 'e2b-dev.webflow.io' +export const landingPageHostname = 'e2b-landing-page.com' export const landingPageFramerHostname = 'e2b-landing-page.framer.website' export const blogFramerHostname = 'e2b-blog.framer.website' export const changelogFramerHostname = 'e2b-changelog.framer.website' diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts index 0f7c8274d..778ba888d 100644 --- a/apps/web/src/middleware.ts +++ b/apps/web/src/middleware.ts @@ -1,7 +1,7 @@ import { NextRequest, NextResponse } from 'next/server' import { replaceUrls } from '@/utils/replaceUrls' import { - landingPageWebflowHostname, + landingPageHostname, landingPageFramerHostname, blogFramerHostname, changelogFramerHostname, @@ -17,22 +17,22 @@ export async function middleware(req: NextRequest): Promise { if (url.pathname === '' || url.pathname === '/') { if (process.env.NODE_ENV === 'production') { - url.hostname = landingPageWebflowHostname + url.hostname = landingPageHostname } else { return NextResponse.redirect(new URL('/dashboard', req.url)) } } if (url.pathname.startsWith('/terms')) { - url.hostname = landingPageWebflowHostname + url.hostname = landingPageHostname } if (url.pathname.startsWith('/privacy')) { - url.hostname = landingPageWebflowHostname + url.hostname = landingPageHostname } if (url.pathname.startsWith('/pricing')) { - url.hostname = landingPageWebflowHostname + url.hostname = landingPageHostname } // TODO: Not on the new landing page hosting yet @@ -62,12 +62,8 @@ export async function middleware(req: NextRequest): Promise { // !!! 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 = /