Skip to content

Commit c2ea47c

Browse files
authored
Merge pull request #27 from ColombiaPython/fix/seo-metadata-base
Hardcode metadataBase to python.org.co
2 parents 63bb8da + 19a4c9a commit c2ea47c

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎lib/seo.ts‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import type { Metadata, Viewport } from "next";
22
import { asset } from "@/lib/assets";
33

4-
function resolveMetadataBase(): URL {
5-
if (process.env.GITHUB_ACTIONS && process.env.GITHUB_REPOSITORY) {
6-
const owner = process.env.GITHUB_REPOSITORY.split("/")[0];
7-
return new URL(`https://${owner}.github.io`);
8-
}
9-
return new URL("https://python.org.co");
10-
}
4+
const METADATA_BASE = new URL("https://python.org.co");
115

126
export const viewport: Viewport = {
137
width: "device-width",
@@ -17,7 +11,7 @@ export const viewport: Viewport = {
1711
};
1812

1913
export const metadata: Metadata = {
20-
metadataBase: resolveMetadataBase(),
14+
metadataBase: METADATA_BASE,
2115
title: {
2216
default: "Python Colombia | Comunidad Oficial de Python en Colombia",
2317
template: "%s | Python Colombia",

0 commit comments

Comments
 (0)