diff --git a/api/routes/qr.js b/api/routes/qr.js index 149a87c..f936d7b 100644 --- a/api/routes/qr.js +++ b/api/routes/qr.js @@ -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(