fix: use FRONTEND_URL environment variable for dynamic qr code URL instead of BASE_URL

This commit is contained in:
Mohan Ki
2026-07-27 16:41:02 +05:30
parent 386071f48d
commit e6e448a2a9
+1 -1
View File
@@ -59,7 +59,7 @@ router.post('/generate', verifyToken, async (req, res) => {
}
// In production, this would use the real domain (e.g. https://ck-qr.com/l/)
finalQrContent = `${process.env.BASE_URL || 'http://localhost:4001'}/l/${shortUrlId}`;
finalQrContent = `${process.env.FRONTEND_URL || 'http://localhost:4000'}/l/${shortUrlId}`;
}
const result = await pgPool.query(