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 86eb0c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Expand Up @@ -418,3 +418,4 @@
- zachdtaylor
- zainfathoni
- zhe
- lili.21
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 86eb0c0

Please sign in to comment.