Skip to content

Commit

Permalink
Fixed server port not the following local environment config file
Browse files Browse the repository at this point in the history
  • Loading branch information
bootsie123 committed Oct 27, 2021
1 parent db74f09 commit 618aaea
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ node_modules
*.bak

# local env files
.env.local
.env.*.local
.env
.env.*
!.env.example

# Log files
npm-debug.log*
Expand Down
2 changes: 2 additions & 0 deletions functions/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const cors = require("cors");
const history = require("connect-history-api-fallback");
const fetch = require("node-fetch");

require("dotenv").config();

const app = express();
const PORT = process.env.PORT || 3000;

Expand Down
51 changes: 42 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "f1-web-viewer",
"description": "A simple grid-based web viewer for Formula 1",
"author": "bootsie123",
"version": "1.7.10",
"version": "1.7.11",
"private": true,
"homepage": "https://github.com/bootsie123/F1-Web-Viewer",
"scripts": {
Expand All @@ -27,6 +27,7 @@
"core-js": "^3.6.5",
"cors": "^2.8.5",
"cors-anywhere": "^0.4.4",
"dotenv": "^10.0.0",
"electron-store": "^8.0.0",
"electron-updater": "^4.3.9",
"express": "^4.17.1",
Expand Down

0 comments on commit 618aaea

Please sign in to comment.