Skip to content

Commit 1c301b9

Browse files
committed
fix url issue
1 parent 151ab70 commit 1c301b9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pwa/app/(common)/layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const poppins = Poppins({
1313
export async function generateMetadata(): Promise<Metadata> {
1414
const dictionary = await import(`data/meta.json`);
1515

16-
const BASE_URL = process.env.NEXT_ROOT_URL || "https://api-platform.com";
16+
const BASE_URL =
17+
"https://" + process.env.NEXT_ROOT_URL || "https://api-platform.com";
1718
const URL_LOGO = `${BASE_URL}/images/logo.png`;
1819

1920
const title = dictionary["layout"].title;

pwa/app/(con)/[locale]/con/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
1313
const { URL: BASE_URL, OG_IMAGE } = await import(`data/con/meta`);
1414

1515
return {
16-
metadataBase: new URL(process.env.NEXT_ROOT_URL || ""),
16+
metadataBase: new URL(
17+
"https://" + process.env.NEXT_ROOT_URL || "https://api-platform.com"
18+
),
1719
title: {
1820
default: dictionary.title,
1921
template: "%s - API Platform Conference",

0 commit comments

Comments
 (0)