Skip to content

Commit

Permalink
api: remove env aliasing
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmoron committed Mar 10, 2024
1 parent d2cccd9 commit b0e2bc3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
23 changes: 0 additions & 23 deletions api/modules/util/alias-envs.js

This file was deleted.

3 changes: 1 addition & 2 deletions api/server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "dotenv/config";
import "./modules/util/alias-envs.js";

import express from "express";

Expand All @@ -20,7 +19,7 @@ const __dirname = path.dirname(__filename).slice(0, -4);

app.disable('x-powered-by');

if (process.env.API_URL) {
if (process.env.API_URL && !process.env.WEB_URL) {
runAPI(express, app, gitCommit, gitBranch, __dirname)
} else {
console.log(
Expand Down
1 change: 0 additions & 1 deletion src/test/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "dotenv/config";
import "../modules/sub/alias-envs.js";

import { getJSON } from "../modules/api.js";
import { services } from "../modules/config.js";
Expand Down

0 comments on commit b0e2bc3

Please sign in to comment.