fix: add bullmq, fix login error logging, regenerate zod schemas
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
NODE_ENV="development"
|
||||
HOST=0.0.0.0
|
||||
PORT=5000
|
||||
# FRONTEND_URLS=http://localhost:3000,http://192.168.1.8:3000
|
||||
FRONTEND_URLS=http://localhost:3000
|
||||
# FRONTEND_URLS=http://192.168.1.37:3000
|
||||
SELENIUM_AGENT_BASE_URL=http://localhost:5002
|
||||
JWT_SECRET = 'dentalsecret'
|
||||
DB_HOST=localhost
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
"archiver": "^7.0.1",
|
||||
"axios": "^1.9.0",
|
||||
"bcrypt": "^5.1.1",
|
||||
"bullmq": "^5.74.1",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.0.3",
|
||||
"express": "^4.21.2",
|
||||
|
||||
@@ -85,6 +85,7 @@ router.post(
|
||||
const { password, ...safeUser } = user;
|
||||
return res.status(200).json({ user: safeUser, token });
|
||||
} catch (error) {
|
||||
console.error("Login error:", error);
|
||||
return res.status(500).json({ error: "Internal server error" });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
NODE_ENV=development
|
||||
HOST=0.0.0.0
|
||||
PORT=3000
|
||||
# VITE_API_BASE_URL_BACKEND=http://192.168.1.37:5000
|
||||
VITE_API_BASE_URL_BACKEND=http://localhost:5000
|
||||
Reference in New Issue
Block a user