<reponame>eyalatox/monorepo-playground<filename>evershop/packages/evershop/src/modules/cms/pages/frontStore/homepage/meta.js<gh_stars>0const { buildUrl } = require('@evershop/evershop/src/lib/router/buildUrl');
const {
  setContextValue
} = require('../../../../graphql/services/contextHelper');
const { getSetting } = require('../../../../setting/services/setting');

module.exports = async (request, response, delegate, next) => {
  setContextValue(request, 'pageInfo', {
    title: await getSetting('storeName', 'EverShop'),
    description: await getSetting(
      'storeDescription',
      'An e-commerce platform with Node and MySQL'
    ),
    url: buildUrl('homepage')
  });

  next();
};
