Commit 87fb4578 authored by Bilal's avatar Bilal

Set node version

parent 5bae6d1c
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
"react-router-dom": "^6.19.0", "react-router-dom": "^6.19.0",
"react-scripts": "5.0.1", "react-scripts": "5.0.1",
"web-vitals": "^2.1.4" "web-vitals": "^2.1.4"
},
"engines": {
"node": "=20.5.0"
} }
}, },
"node_modules/@aashutoshrathi/word-wrap": { "node_modules/@aashutoshrathi/word-wrap": {
......
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
"react-scripts": "5.0.1", "react-scripts": "5.0.1",
"web-vitals": "^2.1.4" "web-vitals": "^2.1.4"
}, },
"engines": {
"node": "=20.5.0"
},
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",
"build": "react-scripts build", "build": "react-scripts build",
......
...@@ -7,8 +7,8 @@ const app = express(); ...@@ -7,8 +7,8 @@ const app = express();
const port = process.env.PORT || 3005; const port = process.env.PORT || 3005;
app.use(cors()); app.use(cors());
app.use(bodyParser.json()); // for parsing application/json app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded app.use(bodyParser.urlencoded({ extended: true }));
app.post('/api/data', async (req, res) => { app.post('/api/data', async (req, res) => {
try { try {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment