diff --git a/providers/frame/FrameProxyProvider.ts b/providers/frame/FrameProxyProvider.ts index 4fea151a7..ce9cc17dc 100644 --- a/providers/frame/FrameProxyProvider.ts +++ b/providers/frame/FrameProxyProvider.ts @@ -8,7 +8,7 @@ import { FrameProvider } from "./FrameProvider.ts" export abstract class FrameProxyProvider extends FrameProvider { override async handle(request: Request, pathInfo: PathInfo): Promise { if ( - pathInfo.vRuntime && pathInfo.vRuntime !== "latest" && !pathInfo.filePath + !pathInfo.vRuntime && !pathInfo.filePath && request.headers.get("upgrade") === "websocket" ) { return this.proxyWs(request, pathInfo) @@ -52,6 +52,7 @@ export abstract class FrameProxyProvider extends FrameProvider { return new URL( fromPathInfo({ ...pathInfo, + vRuntime: "", filePath: "", }), this.env.href.replace(/^http/, "ws"),