Read the values from `frontmatter` from `.mdx` files using a `.js` file

I want to use https://github.com/iamvishnusankar/next-sitemap to generate Sitemap. However, when I use it normally like: next-sitemap.js module.exports = { siteUrl: ‘https://example.com’, …