fix: use FRONTEND_URL environment variable for dynamic qr code URL instead of BASE_URL
This commit is contained in:
+1
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user