diff --git a/apps/web/src/app/(docs)/docs/troubleshooting/sdks/workers-edge-runtime/page.mdx b/apps/web/src/app/(docs)/docs/troubleshooting/sdks/workers-edge-runtime/page.mdx new file mode 100644 index 000000000..69a1897d8 --- /dev/null +++ b/apps/web/src/app/(docs)/docs/troubleshooting/sdks/workers-edge-runtime/page.mdx @@ -0,0 +1,3 @@ +# Vercel Edge Runtime and Cloudflare Workers + +The E2B JavaScript SDK currently lacks support for Vercel Edge Runtime and Cloudflare Workers due to transport layer package incompatibility used for Sandbox communication. We recommend using supported runtimes like Node, Bun, or Deno instead. diff --git a/apps/web/src/components/Navigation/NavigationLink.tsx b/apps/web/src/components/Navigation/NavigationLink.tsx index db85b6c6e..7fd528ba8 100644 --- a/apps/web/src/components/Navigation/NavigationLink.tsx +++ b/apps/web/src/components/Navigation/NavigationLink.tsx @@ -9,7 +9,6 @@ export function NavigationLink({ className, link, }: { - className?: string link: NavLink }) { @@ -18,7 +17,8 @@ export function NavigationLink({ const hash = typeof window !== 'undefined' ? window.location.hash : '' // Modify the isActive check to include hash comparison if needed - const isActive = pathname === link.href || + const isActive = + pathname === link.href || (link.href.includes('#') && pathname + hash === link.href) // const pathname = usePathname() // console.log(link) @@ -34,19 +34,17 @@ export function NavigationLink({ isActive ? 'text-white bg-zinc-800' : 'hover:text-white text-zinc-400 bg-transparent', - className, + className )} > -