fedeya / remix-sitemap

Sitemap generator for Remix applications
https://npmjs.com/remix-sitemap
MIT License
95 stars 5 forks source link

Cloudflare pages support #38

Closed Mihai-github closed 11 months ago

Mihai-github commented 1 year ago

Hello,

I'm in the process of developing a Remix.js application intended for deployment on Cloudflare Pages. I'm interested in confirming whether this library is compatible with the deployment platform. As of now, I'm attempting to display the request output upon refreshing the page, but I'm encountering a lack of results. I'm uncertain if this issue stems from a mistake on my end or if there's another underlying reason for this behavior.

export const sitemap: SitemapFunction = async ({ config, request }) => { console.log({ request }); }

fedeya commented 11 months ago

This library should work with cloudflare pages, the error in the code is because you need to return an object with the required properties defined in the return type of SitemapFunction