Skip to content

Commit

Permalink
added node engine specification
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMohit2003 committed Sep 26, 2023
1 parent c421c83 commit 4024340
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
env: {
node: true,
browser: true,
commonjs: true,
es2021: true,
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"engines": {
"node": ">=14.20.1"
},
"scripts": {
"start": "node server/index.js",
"dev": "nodemon server/index.js",
Expand Down
2 changes: 1 addition & 1 deletion server/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { configDotenv } = require("dotenv");
configDotenv();
const express = require("express");
const app = express();
configDotenv();
const port = process.env.PORT || 3000;

app.get("/", (req, res) => {
Expand Down

0 comments on commit 4024340

Please sign in to comment.