diff options
Diffstat (limited to 'hooks/mod.ts')
-rw-r--r-- | hooks/mod.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hooks/mod.ts b/hooks/mod.ts index f432b72..a8f649c 100644 --- a/hooks/mod.ts +++ b/hooks/mod.ts @@ -1,9 +1,10 @@ #!/usr/bin/env -S deno run --allow-env --allow-net -import { getStdout, validateIdentifier } from "@liz-ci/utils"; +import { getStdout, validateIdentifier, getRequiredEnv } from "@liz-ci/utils"; -const addr = { port: 9000, hostname: "0.0.0.0" }; +getRequiredEnv("LAMINAR_HOST"); +const addr = { port: 9000, hostname: "0.0.0.0" }; Deno.serve(addr, async (req) => { const { pathname } = new URL(req.url); if (pathname === "/health") { |