mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Add port environment
This commit is contained in:
parent
87376e56fd
commit
774be14af3
2 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
PORT=8080
|
||||
GITHUB_TOKEN1=
|
||||
GITHUB_TOKEN2=
|
||||
GITHUB_API=https://api.github.com/graphql
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
Loading…
Add table
Reference in a new issue