We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03b4e51 commit 51ba934Copy full SHA for 51ba934
src/adapters/bunny.ts
@@ -39,7 +39,10 @@ declare namespace Bunny {
39
}
40
41
export function serve(options: ServerOptions): Server {
42
- return typeof Bunny !== "undefined" ? new BunnyServer(options) : serveDeno(options);
+ if (typeof Bunny !== "undefined" && Bunny.v1 && typeof Bunny.v1.serve === "function") {
43
+ return new BunnyServer(options);
44
+ }
45
+ return serveDeno(options);
46
47
48
class BunnyServer implements Server {
0 commit comments