Skip to content

Commit

Permalink
support .env durning local development
Browse files Browse the repository at this point in the history
  • Loading branch information
lili21 committed Aug 18, 2022
1 parent bc2fafc commit 98124a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/express/server.js
@@ -1,3 +1,7 @@
if (process.env.NODE_ENV === "development") {
require("dotenv").config();
}

const path = require("path");
const express = require("express");
const compression = require("compression");
Expand Down

0 comments on commit 98124a0

Please sign in to comment.