fixing .env

This commit is contained in:
CHIEFSOFT\ameye
2025-07-20 14:16:34 -04:00
parent ed592b54c3
commit 4ae8c5b4d7
+7 -3
View File
@@ -1,6 +1,10 @@
const express = require('express');
const cors = require('cors');
const cookieParser = require('cookie-parser');
const dotenv = require('dotenv');
const env = dotenv.config();
const bodyParser = require('body-parser');
const logger = require('./app/logger');
const port = process.env.PORT || 3000;
@@ -23,9 +27,9 @@ app.use(cookieParser());
// parse application/vnd.api+json as json
app.use(bodyParser.json({ type: 'application/vnd.api+json' }))
const socket = io.connect(process.env.SOCKET_URL);
//const socket = io.connect("http://10.0.0.32:5005");
//
//const socket = io.connect(process.env.SOCKET_URL);
const socket = io.connect("http://10.10.10.32:5005");
// respond with "hello world" when a GET request is made to the homepage
app.get('/broadcast/general', (req, res) => {