From e6e448a2a9569014bad726754e5c232354bc9a9e Mon Sep 17 00:00:00 2001 From: Mohan Ki Date: Mon, 27 Jul 2026 16:41:02 +0530 Subject: [PATCH] fix: use FRONTEND_URL environment variable for dynamic qr code URL instead of BASE_URL --- api/routes/qr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(