change :// to ??

This commit is contained in:
2026-04-13 11:50:13 +07:00
parent e3f9d7914f
commit fb64059193
2 changed files with 2 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ exports.apiVerify = async (req, res) => {
if (!qual) return res.status(404).json({ error: 'Degree not found' });
if (qual.status === 'revoked') return res.status(404).json({ error: 'Degree has been revoked' });
const baseUrl = `${req.protocol}://${req.get('host')}`;
const baseUrl = process.env.BACKEND_URL ?? `${req.protocol}://${req.get('host')}`;
const buildUrl = (f) => f ? [generateSignedUrl(baseUrl, path.basename(f))] : undefined;
const response = {