Skip to content

Commit ae57ffe

Browse files
committed
fix: env variable fix
1 parent 1ea6eca commit ae57ffe

File tree

7 files changed

+15
-914
lines changed

7 files changed

+15
-914
lines changed

app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ app.use((req, res, next) => {
1919
// add routes
2020
app.use("/api", apiController);
2121

22-
if (process.env.NODE_ENV === "production") {
22+
if (process.env.APP_ENV === "production") {
2323
app.use(express.static("client/dist"));
2424
app.get("*", (req, res) => {
2525
res.sendFile(path.join(__dirname, "../client/dist", "index.html"));

client/package-lock.json

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)