Skip to content

Instantly share code, notes, and snippets.

@PCreations
Created September 7, 2020 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save PCreations/fb42e823abdb74683c71d209cd9b6031 to your computer and use it in GitHub Desktop.
Save PCreations/fb42e823abdb74683c71d209cd9b6031 to your computer and use it in GitHub Desktop.
import { createRecentArticlesSitemap } from "./recent-articles-sitemap";
export const createHandler = ({ domains }) => {
const recentArticlesSitemap = createRecentArticlesSitemap({
todayDate: new Date(),
});
return () =>
Promise.all(
domains.map(({ domain, language }) =>
recentArticlesSitemap({ domain, language })
)
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment