Skip to content

Commit

Permalink
fix: domain env variable doesn't work outside of env file
Browse files Browse the repository at this point in the history
  • Loading branch information
amycatgirl committed May 16, 2024
1 parent 0f21d93 commit 28cce06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/ui_create_object_route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const UICreateObjectRoute = POST("/", async (req) => {
const file = form.get("file");
const until: unknown | number = form.get("until") ?? 1;
const storage = StorageSingleton.getInstance();
const host = env["DOMAIN"] ?? "http://localhost:5544"
const host = env["DOMAIN"] ?? Deno.env.get("DOMAIN") ?? "http://localhost:5544"

if (!file) {
return BadRequest();
Expand Down

0 comments on commit 28cce06

Please sign in to comment.