Add port environment

This commit is contained in:
ryo-ma 2025-05-13 15:58:00 +09:00
parent 87376e56fd
commit 774be14af3
2 changed files with 2 additions and 1 deletions

View file

@ -1,3 +1,4 @@
PORT=8080
GITHUB_TOKEN1=
GITHUB_TOKEN2=
GITHUB_API=https://api.github.com/graphql

View file

@ -1,4 +1,4 @@
import { serve } from "https://deno.land/std@0.125.0/http/server.ts";
import requestHandler from "./api/index.ts";
serve(requestHandler, { port: 8080 });
serve(requestHandler, { port: Number(Deno.env.get("PORT")) || 8080 });