Skip to content

Commit 51ba934

Browse files
committed
up
1 parent 03b4e51 commit 51ba934

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/adapters/bunny.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ declare namespace Bunny {
3939
}
4040

4141
export function serve(options: ServerOptions): Server {
42-
return typeof Bunny !== "undefined" ? new BunnyServer(options) : serveDeno(options);
42+
if (typeof Bunny !== "undefined" && Bunny.v1 && typeof Bunny.v1.serve === "function") {
43+
return new BunnyServer(options);
44+
}
45+
return serveDeno(options);
4346
}
4447

4548
class BunnyServer implements Server {

0 commit comments

Comments
 (0)