refactor: rename PORT to SERVER_PORT for clarity

This commit is contained in:
Haileyesus
2026-03-11 15:55:42 +03:00
parent f3b25bbbab
commit 468ab599be
8 changed files with 22 additions and 22 deletions

View File

@@ -529,7 +529,7 @@ router.get('/next/:projectName', async (req, res) => {
// Fallback to loading tasks and finding next one locally
// Use localhost to bypass proxy for internal server-to-server calls
const tasksResponse = await fetch(`http://localhost:${process.env.PORT || 3001}/api/taskmaster/tasks/${encodeURIComponent(projectName)}`, {
const tasksResponse = await fetch(`http://localhost:${process.env.SERVER_PORT || 3001}/api/taskmaster/tasks/${encodeURIComponent(projectName)}`, {
headers: {
'Authorization': req.headers.authorization
}
@@ -1960,4 +1960,4 @@ Brief description of what this web application will do and why it's needed.
];
}
export default router;
export default router;