Add dotenv support and update server config

Introduced dotenv for environment variable management and created a .env file for port configuration. Updated server to use HOST and PORT from environment, allowing access from all IPs. Modified Socket.io client connection to use window.location.origin for remote server compatibility.
This commit is contained in:
apiboomer
2025-08-27 01:48:09 +03:00
parent e60082938f
commit e56c743851
5 changed files with 28 additions and 3 deletions

View File

@@ -12,6 +12,7 @@
"license": "ISC",
"dependencies": {
"bad-words": "^3.0.4",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"moment": "^2.29.4",
"socket.io": "^4.7.2"