Skip to content

Commit

Permalink
Add /cookbook page (#527)
Browse files Browse the repository at this point in the history
This PR makes sure that the `https://e2b.dev/cookbook` route correctly
displays the content of the cookbook page that's part of our landing
page on our Webflow.
  • Loading branch information
mlejva authored Jan 3, 2025
2 parents b9cb0ae + 3b5bd06 commit 084eae9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/web/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export async function middleware(req: NextRequest): Promise<NextResponse> {
url.hostname = landingPageHostname
}

if (url.pathname.startsWith('/cookbook')) {
url.hostname = landingPageHostname
}

// TODO: Not on the new landing page hosting yet
if (url.pathname.startsWith('/ai-agents')) {
url.hostname = landingPageFramerHostname
Expand Down Expand Up @@ -80,7 +84,8 @@ export const config = {
'/ai-agents/:path*',
'/privacy/:path*',
'/terms/:path*',
'/pricing/:path*'
'/pricing/:path*',
'/cookbook/:path*',
],
}

0 comments on commit 084eae9

Please sign in to comment.