Skip to content

Commit

Permalink
add missed env
Browse files Browse the repository at this point in the history
  • Loading branch information
Herkarl committed Apr 22, 2024
1 parent 8ac3b66 commit 5a175a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ app.use('/', express.static(path.join(__dirname, 'public')));
app.use(session({
saveUninitialized: true,
resave: true,
secret: process.env.SESSION_SECRET,
secret: env.session_secret,
}));

app.use((req, res, next) => {
Expand Down
1 change: 1 addition & 0 deletions util/env.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const env = {
session_secret: process.env.SESSION_SECRET,
node_env: process.env.NODE_ENV || "development",
port: process.env.PORT || 5000,
database_url: process.env.DATABASE_URL,
Expand Down

0 comments on commit 5a175a9

Please sign in to comment.