Skip to content

Commit deed0ea

Browse files
authored
refactor: move is dev to variable
1 parent 2fb0043 commit deed0ea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/oauth/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { AtprotoOAuthClient } from "@bigmoves/atproto-oauth-client";
22
import { SessionStore, StateStore } from "../storage.ts";
33

4+
const isDev = Deno.env.get("NODE_ENV") !== "production";
45
export const scope = [
56
"atproto",
67
"account:email",
@@ -44,7 +45,7 @@ export const createClient = (db: Deno.Kv) => {
4445
stateStore: new StateStore(db),
4546
sessionStore: new SessionStore(db),
4647
didCache: undefined,
47-
allowHttp: Deno.env.get("NODE_ENV") !== "production",
48+
allowHttp: isDev,
4849
plcDirectoryUrl: Deno.env.get("PLC_URL") ?? "https://plc.directory",
4950
});
5051
};

0 commit comments

Comments
 (0)