Skip to content

Commit

Permalink
Merge pull request #1 from ZachSaucier/patch-2
Browse files Browse the repository at this point in the history
Update index.ts
  • Loading branch information
ZachSaucier authored Nov 23, 2023
2 parents ab921d4 + cdd22b0 commit a9ad099
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ export const createSitemap = async (domain: string = DOMAIN, options?: Options):

const json = await prepareData(domain, options);

options.additional.forEach((url) => {
json.push({
page: `${domain}${url}`,
});
});

if (options?.debug) {
console.log('RESULT', json);
}
Expand Down

0 comments on commit a9ad099

Please sign in to comment.