feat: add meta tags for seo

This commit is contained in:
zyachel 2022-06-12 12:40:03 +05:30
parent 7f0406f054
commit 14eece71a6
4 changed files with 40 additions and 1 deletions

View file

@ -34,6 +34,9 @@ const sendErrorResponse = (err, req, res, devMode = false) => {
},
meta: {
title: 'Error',
url: `${req.urlObj.origin}${req.urlObj.pathname}`,
imageUrl: `${req.urlObj.origin}/icon.svg`,
description: `ERROR: ${err.message}. Please try again later.`,
},
});
};