Skip to content

Commit

Permalink
fix: update base url in sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
TopETH committed Jul 20, 2024
1 parent ef3508e commit d236b9b
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
}
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
}
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/[project]/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
}
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
]
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/about/investors/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
]
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/about/referrals/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
}
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/blog/[category]/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
}
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/blog/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
]
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/in/early-access/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
]
Expand Down
1 change: 1 addition & 0 deletions apps/webapp/app/(routes)/[lang]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function sitemap({
}: CommonPageProps): MetadataRoute.Sitemap {
return [
{
url: `${process.env.VERCEL_URL}/${params.lang}/learn/batch-auctions`,
url: `https://${process.env.VERCEL_URL}/${params.lang}/learn/batch-auctions`,
lastModified: new Date()
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function sitemap({
}: CommonPageProps): MetadataRoute.Sitemap {
return [
{
url: `${process.env.VERCEL_URL}/${params.lang}/learn/developers`,
url: `https://${process.env.VERCEL_URL}/${params.lang}/learn/developers`,
lastModified: new Date()
}
]
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/learn/media/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function sitemap({
}: CommonPageProps): MetadataRoute.Sitemap {
return [
{
url: `${process.env.VERCEL_URL}/${params.lang}/learn/media`,
url: `https://${process.env.VERCEL_URL}/${params.lang}/learn/media`,
lastModified: new Date()
}
]
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/learn/security/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function sitemap({
}: CommonPageProps): MetadataRoute.Sitemap {
return [
{
url: `${process.env.VERCEL_URL}/${params.lang}/learn/security`,
url: `https://${process.env.VERCEL_URL}/${params.lang}/learn/security`,
lastModified: new Date()
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function sitemap({
}: CommonPageProps): MetadataRoute.Sitemap {
return [
{
url: `${process.env.VERCEL_URL}/${params.lang}/learn/tokenization`,
url: `https://${process.env.VERCEL_URL}/${params.lang}/learn/tokenization`,
lastModified: new Date()
}
]
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/legal/privacy/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function sitemap({
}: CommonPageProps): MetadataRoute.Sitemap {
return [
{
url: `${process.env.VERCEL_URL}/${params.lang}/legal/privacy`,
url: `https://${process.env.VERCEL_URL}/${params.lang}/legal/privacy`,
lastModified: new Date()
}
]
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/legal/terms/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function sitemap({
}: CommonPageProps): MetadataRoute.Sitemap {
return [
{
url: `${process.env.VERCEL_URL}/${params.lang}/legal/terms`,
url: `https://${process.env.VERCEL_URL}/${params.lang}/legal/terms`,
lastModified: new Date()
}
]
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function sitemap({
}: CommonPageProps): MetadataRoute.Sitemap {
return [
{
url: `${process.env.VERCEL_URL}/${params.lang}`,
url: `https://${process.env.VERCEL_URL}/${params.lang}`,
lastModified: new Date()
}
]
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/wallet/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function sitemap({
}: CommonPageProps): MetadataRoute.Sitemap {
return [
{
url: `${process.env.VERCEL_URL}/${params.lang}/wallet`,
url: `https://${process.env.VERCEL_URL}/${params.lang}/wallet`,
lastModified: new Date()
}
]
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/app/(routes)/[lang]/whitepaper/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function sitemap({
}: CommonPageProps): MetadataRoute.Sitemap {
return [
{
url: `${process.env.VERCEL_URL}/${params.lang}/whitepaper`,
url: `https://${process.env.VERCEL_URL}/${params.lang}/whitepaper`,
lastModified: new Date()
}
]
Expand Down

0 comments on commit d236b9b

Please sign in to comment.