From d236b9b9c08f1c7aceb1efbbe8437357caab38ec Mon Sep 17 00:00:00 2001 From: TopETH Date: Sat, 20 Jul 2024 11:11:08 -0400 Subject: [PATCH] fix: update base url in sitemap --- apps/webapp/app/(routes)/[lang]/[project]/auction/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/[project]/presale/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/[project]/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/about/ai-startups/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/about/bitcash-app/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/about/communities/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/about/daos-dboard/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/about/investors/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/about/referrals/sitemap.ts | 2 +- .../app/(routes)/[lang]/blog/[category]/[slug]/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/blog/[category]/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/blog/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/in/early-access/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/layout.tsx | 1 + apps/webapp/app/(routes)/[lang]/learn/batch-auctions/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/learn/developers/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/learn/media/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/learn/security/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/learn/tokenization/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/legal/privacy/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/legal/terms/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/wallet/sitemap.ts | 2 +- apps/webapp/app/(routes)/[lang]/whitepaper/sitemap.ts | 2 +- 24 files changed, 24 insertions(+), 23 deletions(-) diff --git a/apps/webapp/app/(routes)/[lang]/[project]/auction/sitemap.ts b/apps/webapp/app/(routes)/[lang]/[project]/auction/sitemap.ts index 5fed2419..777efd9c 100644 --- a/apps/webapp/app/(routes)/[lang]/[project]/auction/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/[project]/auction/sitemap.ts @@ -10,7 +10,7 @@ export default async function sitemap({ const projects = await getProjects(dict) return projects.map(project => ({ - url: `${process.env.VERCEL_URL}/${params.lang}/${project.slug}/auction`, + url: `https://${process.env.VERCEL_URL}/${params.lang}/${project.slug}/auction`, lastModified: new Date() })) } diff --git a/apps/webapp/app/(routes)/[lang]/[project]/presale/sitemap.ts b/apps/webapp/app/(routes)/[lang]/[project]/presale/sitemap.ts index 64ffdb03..f140d8c2 100644 --- a/apps/webapp/app/(routes)/[lang]/[project]/presale/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/[project]/presale/sitemap.ts @@ -10,7 +10,7 @@ export default async function sitemap({ const projects = await getProjects(dict) return projects.map(project => ({ - url: `${process.env.VERCEL_URL}/${params.lang}/${project.slug}/presale`, + url: `https://${process.env.VERCEL_URL}/${params.lang}/${project.slug}/presale`, lastModified: new Date() })) } diff --git a/apps/webapp/app/(routes)/[lang]/[project]/sitemap.ts b/apps/webapp/app/(routes)/[lang]/[project]/sitemap.ts index 16436532..ce5dcd70 100644 --- a/apps/webapp/app/(routes)/[lang]/[project]/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/[project]/sitemap.ts @@ -10,7 +10,7 @@ export default async function sitemap({ const projects = await getProjects(dict) return projects.map(project => ({ - url: `${process.env.VERCEL_URL}/${params.lang}/${project.slug}`, + url: `https://${process.env.VERCEL_URL}/${params.lang}/${project.slug}`, lastModified: new Date() })) } diff --git a/apps/webapp/app/(routes)/[lang]/about/ai-startups/sitemap.ts b/apps/webapp/app/(routes)/[lang]/about/ai-startups/sitemap.ts index c45865da..fca8f6a7 100644 --- a/apps/webapp/app/(routes)/[lang]/about/ai-startups/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/about/ai-startups/sitemap.ts @@ -6,7 +6,7 @@ export default function sitemap({ }: CommonPageProps): MetadataRoute.Sitemap { return [ { - url: `${process.env.VERCEL_URL}/${params.lang}/about/ai-startups`, + url: `https://${process.env.VERCEL_URL}/${params.lang}/about/ai-startups`, lastModified: new Date() } ] diff --git a/apps/webapp/app/(routes)/[lang]/about/bitcash-app/sitemap.ts b/apps/webapp/app/(routes)/[lang]/about/bitcash-app/sitemap.ts index 15165243..5c79f3d9 100644 --- a/apps/webapp/app/(routes)/[lang]/about/bitcash-app/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/about/bitcash-app/sitemap.ts @@ -6,7 +6,7 @@ export default function sitemap({ }: CommonPageProps): MetadataRoute.Sitemap { return [ { - url: `${process.env.VERCEL_URL}/${params.lang}/about/bitcash-app`, + url: `https://${process.env.VERCEL_URL}/${params.lang}/about/bitcash-app`, lastModified: new Date() } ] diff --git a/apps/webapp/app/(routes)/[lang]/about/communities/sitemap.ts b/apps/webapp/app/(routes)/[lang]/about/communities/sitemap.ts index ac318153..5b62d68b 100644 --- a/apps/webapp/app/(routes)/[lang]/about/communities/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/about/communities/sitemap.ts @@ -6,7 +6,7 @@ export default function sitemap({ }: CommonPageProps): MetadataRoute.Sitemap { return [ { - url: `${process.env.VERCEL_URL}/${params.lang}/about/communities`, + url: `https://${process.env.VERCEL_URL}/${params.lang}/about/communities`, lastModified: new Date() } ] diff --git a/apps/webapp/app/(routes)/[lang]/about/daos-dboard/sitemap.ts b/apps/webapp/app/(routes)/[lang]/about/daos-dboard/sitemap.ts index da42fddc..eae39142 100644 --- a/apps/webapp/app/(routes)/[lang]/about/daos-dboard/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/about/daos-dboard/sitemap.ts @@ -6,7 +6,7 @@ export default function sitemap({ }: CommonPageProps): MetadataRoute.Sitemap { return [ { - url: `${process.env.VERCEL_URL}/${params.lang}/about/daos-dboard`, + url: `https://${process.env.VERCEL_URL}/${params.lang}/about/daos-dboard`, lastModified: new Date() } ] diff --git a/apps/webapp/app/(routes)/[lang]/about/investors/sitemap.ts b/apps/webapp/app/(routes)/[lang]/about/investors/sitemap.ts index 8eee953b..e3086db3 100644 --- a/apps/webapp/app/(routes)/[lang]/about/investors/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/about/investors/sitemap.ts @@ -6,7 +6,7 @@ export default function sitemap({ }: CommonPageProps): MetadataRoute.Sitemap { return [ { - url: `${process.env.VERCEL_URL}/${params.lang}/about/investors`, + url: `https://${process.env.VERCEL_URL}/${params.lang}/about/investors`, lastModified: new Date() } ] diff --git a/apps/webapp/app/(routes)/[lang]/about/referrals/sitemap.ts b/apps/webapp/app/(routes)/[lang]/about/referrals/sitemap.ts index bb4cf138..7edef38f 100644 --- a/apps/webapp/app/(routes)/[lang]/about/referrals/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/about/referrals/sitemap.ts @@ -6,7 +6,7 @@ export default function sitemap({ }: CommonPageProps): MetadataRoute.Sitemap { return [ { - url: `${process.env.VERCEL_URL}/${params.lang}/about/referrals`, + url: `https://${process.env.VERCEL_URL}/${params.lang}/about/referrals`, lastModified: new Date() } ] diff --git a/apps/webapp/app/(routes)/[lang]/blog/[category]/[slug]/sitemap.ts b/apps/webapp/app/(routes)/[lang]/blog/[category]/[slug]/sitemap.ts index 64d826b2..e0e0ed8f 100644 --- a/apps/webapp/app/(routes)/[lang]/blog/[category]/[slug]/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/blog/[category]/[slug]/sitemap.ts @@ -17,7 +17,7 @@ export default async function sitemap( const slugs = sections.map((section: any) => section.slug) return slugs.map((slug: any) => ({ - url: `${process.env.VERCEL_URL}/${lang}/blog/${category}/${slug}`, + url: `https://${process.env.VERCEL_URL}/${lang}/blog/${category}/${slug}`, lastModified: new Date() })) } diff --git a/apps/webapp/app/(routes)/[lang]/blog/[category]/sitemap.ts b/apps/webapp/app/(routes)/[lang]/blog/[category]/sitemap.ts index 3787dc63..fe58dd8d 100644 --- a/apps/webapp/app/(routes)/[lang]/blog/[category]/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/blog/[category]/sitemap.ts @@ -17,7 +17,7 @@ export default async function sitemap( const categories = sections.map(section => section.slug) return categories.map(category => ({ - url: `${process.env.VERCEL_URL}/${lang}/blog/${category}`, + url: `https://${process.env.VERCEL_URL}/${lang}/blog/${category}`, lastModified: new Date() })) } diff --git a/apps/webapp/app/(routes)/[lang]/blog/sitemap.ts b/apps/webapp/app/(routes)/[lang]/blog/sitemap.ts index caab1ecd..a6c9122a 100644 --- a/apps/webapp/app/(routes)/[lang]/blog/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/blog/sitemap.ts @@ -6,7 +6,7 @@ export default function sitemap({ }: CommonPageProps): MetadataRoute.Sitemap { return [ { - url: `${process.env.VERCEL_URL}/${params.lang}/blog`, + url: `https://${process.env.VERCEL_URL}/${params.lang}/blog`, lastModified: new Date() } ] diff --git a/apps/webapp/app/(routes)/[lang]/in/early-access/sitemap.ts b/apps/webapp/app/(routes)/[lang]/in/early-access/sitemap.ts index f46b657f..ecafad86 100644 --- a/apps/webapp/app/(routes)/[lang]/in/early-access/sitemap.ts +++ b/apps/webapp/app/(routes)/[lang]/in/early-access/sitemap.ts @@ -6,7 +6,7 @@ export default function sitemap({ }: CommonPageProps): MetadataRoute.Sitemap { return [ { - url: `${process.env.VERCEL_URL}/${params.lang}/in/early-access`, + url: `https://${process.env.VERCEL_URL}/${params.lang}/in/early-access`, lastModified: new Date() } ] diff --git a/apps/webapp/app/(routes)/[lang]/layout.tsx b/apps/webapp/app/(routes)/[lang]/layout.tsx index 0f17f390..51664447 100644 --- a/apps/webapp/app/(routes)/[lang]/layout.tsx +++ b/apps/webapp/app/(routes)/[lang]/layout.tsx @@ -31,6 +31,7 @@ export default async function RootLayout({ children, params }: RootLayoutProps) { + console.log('VERCEL_URL', process.env.VERCEL_URL) const dict = await getDictionary(params.lang) return (