Skip to content

Commit 2209927

Browse files
updates
1 parent a02a4f1 commit 2209927

10 files changed

Lines changed: 88 additions & 12 deletions

File tree

app/[slug]/page.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,16 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
3232
title,
3333
description: post.description,
3434
...(post.keywords ? { keywords: post.keywords.split(',').map((k) => k.trim()) } : {}),
35-
alternates: { canonical },
35+
alternates: {
36+
canonical,
37+
languages: {
38+
'en-US': canonical,
39+
'en-CA': canonical,
40+
'en-GB': canonical,
41+
'en-AU': canonical,
42+
'x-default': canonical,
43+
},
44+
},
3645
robots: { index: true, follow: true },
3746
openGraph: {
3847
type: 'article',

app/blog/[slug]/page.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,16 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
3838
title,
3939
description: post.description,
4040
...(post.keywords ? { keywords: post.keywords.split(',').map((k) => k.trim()) } : {}),
41-
alternates: { canonical },
41+
alternates: {
42+
canonical,
43+
languages: {
44+
'en-US': canonical,
45+
'en-CA': canonical,
46+
'en-GB': canonical,
47+
'en-AU': canonical,
48+
'x-default': canonical,
49+
},
50+
},
4251
robots: { index: true, follow: true },
4352
openGraph: {
4453
type: 'article',

app/blog/page.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ const blogDescription =
1818
export const metadata: Metadata = {
1919
title: blogTitle,
2020
description: blogDescription,
21-
alternates: { canonical },
21+
alternates: {
22+
canonical,
23+
languages: {
24+
'en-US': canonical,
25+
'en-CA': canonical,
26+
'en-GB': canonical,
27+
'en-AU': canonical,
28+
'x-default': canonical,
29+
},
30+
},
2231
robots: { index: true, follow: true },
2332
openGraph: {
2433
type: 'website',

app/interview-questions/page.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ const longP2 =
2121
export const metadata: Metadata = {
2222
title: pageTitle,
2323
description: shortDescription,
24-
alternates: { canonical },
24+
alternates: {
25+
canonical,
26+
languages: {
27+
'en-US': canonical,
28+
'en-CA': canonical,
29+
'en-GB': canonical,
30+
'en-AU': canonical,
31+
'x-default': canonical,
32+
},
33+
},
2534
robots: { index: true, follow: true },
2635
openGraph: {
2736
type: 'website',

app/interviews/[slug]/page.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,16 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
3333
...(interview.keywords
3434
? { keywords: interview.keywords.split(',').map((k) => k.trim()) }
3535
: {}),
36-
alternates: { canonical },
36+
alternates: {
37+
canonical,
38+
languages: {
39+
'en-US': canonical,
40+
'en-CA': canonical,
41+
'en-GB': canonical,
42+
'en-AU': canonical,
43+
'x-default': canonical,
44+
},
45+
},
3746
robots: { index: true, follow: true },
3847
openGraph: {
3948
type: 'article',

app/interviews/page.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,16 @@ const shortDescription =
1515
export const metadata: Metadata = {
1616
title: pageTitle,
1717
description: shortDescription,
18-
alternates: { canonical },
18+
alternates: {
19+
canonical,
20+
languages: {
21+
'en-US': canonical,
22+
'en-CA': canonical,
23+
'en-GB': canonical,
24+
'en-AU': canonical,
25+
'x-default': canonical,
26+
},
27+
},
1928
robots: { index: true, follow: true },
2029
openGraph: {
2130
type: 'website',

app/page.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ export const metadata: Metadata = {
3232
keywords: HOME_KEYWORDS.split(',').map((k) => k.trim()),
3333
alternates: {
3434
canonical: 'https://proxytechsupport.com/',
35+
languages: {
36+
'en-US': 'https://proxytechsupport.com/',
37+
'en-CA': 'https://proxytechsupport.com/',
38+
'en-GB': 'https://proxytechsupport.com/',
39+
'en-AU': 'https://proxytechsupport.com/',
40+
'x-default': 'https://proxytechsupport.com/',
41+
},
3542
},
3643
openGraph: {
3744
title: HOME_OG_TITLE,

app/sitemap.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,13 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
4545
{ url: `${BASE}/interview-questions/`, lastModified: today },
4646
{ url: `${BASE}/technologies/`, lastModified: today },
4747
...getInterviewScheduledRoutes,
48-
...allLandingPages.map((p) => ({
49-
url: p.canonical,
50-
lastModified: today,
51-
})),
48+
...allLandingPages.map((p) => {
49+
if (p.lastmod) {
50+
const d = new Date(p.lastmod);
51+
return { url: p.canonical, lastModified: Number.isNaN(d.getTime()) ? today : d.toISOString().split('T')[0] };
52+
}
53+
return { url: p.canonical, lastModified: today };
54+
}),
5255
];
5356

5457
const postRoutes: MetadataRoute.Sitemap = posts.map((post) => {
@@ -64,7 +67,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
6467
function interviewSitemapLastModified(i: (typeof interviews)[number]): string {
6568
const raw = i.lastmod?.trim() || i.date?.trim();
6669
if (!raw) return today;
67-
const d = new Date(`${raw}T12:00:00.000Z`);
70+
const d = new Date(raw.includes('T') ? raw : `${raw}T12:00:00.000Z`);
6871
return Number.isNaN(d.getTime()) ? today : d.toISOString().split('T')[0];
6972
}
7073

data/landing-pages.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5338,6 +5338,9 @@ export const allLandingPages: LandingPageConfig[] = [
53385338
agenticAiRagMlopsJobSupportUSA,
53395339
agenticAiMlJobSupportUSA,
53405340
aiWorkflowAutomationJobSupportUSA,
5341+
dotnetJobSupportUSA,
5342+
reactJobSupportUSA,
5343+
cloudJobSupportUSA,
53415344
interviewSupportGlobal,
53425345
strugglingInJob,
53435346
productionIssueSupport,

lib/site-seo.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,16 @@ export function landingPageMetadata(config: {
6464
title: config.title,
6565
description: config.description,
6666
keywords: config.keywords,
67-
alternates: { canonical: config.canonical },
67+
alternates: {
68+
canonical: config.canonical,
69+
languages: {
70+
'en-US': config.canonical,
71+
'en-CA': config.canonical,
72+
'en-GB': config.canonical,
73+
'en-AU': config.canonical,
74+
'x-default': config.canonical,
75+
},
76+
},
6877
robots: { index: true, follow: true },
6978
...(config.lastmod ? { other: { 'article:modified_time': config.lastmod } } : {}),
7079
openGraph: {

0 commit comments

Comments
 (0)