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 d85e052 commit 905708cCopy full SHA for 905708c
1 file changed
lib/runtime.ts
@@ -16,7 +16,19 @@ export function getEnvOrThrow(key: string): string {
16
export function serve(
17
handler: (req: Request) => Response | Promise<Response>,
18
) {
19
- Deno.serve({ port: 0 }, handler);
+ Deno.serve(
20
+ {
21
+ port: 0,
22
+ onListen() {
23
+ const url = new URL(
24
+ getEnvOrThrow("JET_BREEZE_PATH_PREFIX"),
25
+ getEnvOrThrow("JET_BREEZE_HOST"),
26
+ );
27
+ console.log(`Listening on ${url.toString()}`);
28
+ },
29
30
+ handler,
31
32
}
33
34
function doGetEnv(key: string): string | undefined {
0 commit comments