File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { Metadata , Viewport } from "next" ;
22import { 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
126export const viewport : Viewport = {
137 width : "device-width" ,
@@ -17,7 +11,7 @@ export const viewport: Viewport = {
1711} ;
1812
1913export 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" ,
You can’t perform that action at this time.
0 commit comments