feat(ADM-018): completed feature
This commit is contained in:
13
project/storefront/src/lib/seo.ts
Normal file
13
project/storefront/src/lib/seo.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export const SITE_NAME = 'MercadoDeVida';
|
||||
export const SITE_URL = (process.env.NEXT_PUBLIC_SITE_URL ?? 'http://localhost:3001').replace(
|
||||
/\/$/,
|
||||
'',
|
||||
);
|
||||
|
||||
export function absoluteUrl(path: string): string {
|
||||
return `${SITE_URL}${path.startsWith('/') ? path : `/${path}`}`;
|
||||
}
|
||||
|
||||
export function metadataTitle(title: string): string {
|
||||
return `${title} | ${SITE_NAME}`;
|
||||
}
|
||||
Reference in New Issue
Block a user