From 97f8b7e8bb8a773beb00be600ed9e5952d9d6a9c Mon Sep 17 00:00:00 2001 From: r-freeman Date: Sat, 14 Jan 2023 22:30:13 +0000 Subject: [PATCH] Converted generateSitemap to TypeScript --- src/components/Footer.tsx | 2 +- src/lib/{generateSitemap.js => generateSitemap.ts} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/lib/{generateSitemap.js => generateSitemap.ts} (97%) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index d41ded7..34708a3 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -21,7 +21,7 @@ export function Footer() {
- + {/**/}
About diff --git a/src/lib/generateSitemap.js b/src/lib/generateSitemap.ts similarity index 97% rename from src/lib/generateSitemap.js rename to src/lib/generateSitemap.ts index 23f6444..668cb92 100644 --- a/src/lib/generateSitemap.js +++ b/src/lib/generateSitemap.ts @@ -5,7 +5,7 @@ import {writeFile} from 'fs/promises' const BASE_URL = process.env.NEXT_PUBLIC_SITE_URL -async function createSitemap(pages) { +async function createSitemap(pages: string[]) { const sitemap = `