Merge pull request #20 from wisetc/master

add dotenv
This commit is contained in:
JustSong
2022-06-07 09:39:49 +08:00
committed by GitHub
4 changed files with 6 additions and 1 deletions
+2
View File
@@ -0,0 +1,2 @@
PORT=3000
HREF="https://your.domain.com/"
+2 -1
View File
@@ -5,4 +5,5 @@ data.db-journal
.vscode
*.db
package-lock.json
yarn.lock
yarn.lock
*.*~
+1
View File
@@ -1,3 +1,4 @@
require('dotenv').config()
const express = require('express');
const path = require('path');
const session = require('express-session');
+1
View File
@@ -12,6 +12,7 @@
"connect-flash": "^0.1.1",
"cookie-parser": "~1.4.4",
"debug": "~2.6.9",
"dotenv": "^16.0.1",
"ejs": "^3.1.5",
"express": "~4.16.1",
"express-rate-limit": "^5.2.3",