Skip to content

Commit 1b9e2c5

Browse files
committed
chore: fetch manifset locally
1 parent 63a76f1 commit 1b9e2c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/get-metadata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function getMetadata({
1313
pathname,
1414
imagePath = DEFAULT_IMAGE_PATH,
1515
}: Metadata) {
16-
const SITE_URL = process.env.NEXT_PUBLIC_DEFAULT_SITE_URL;
16+
const SITE_URL = process.env.NEXT_PUBLIC_DEFAULT_SITE_URL || 'https://www.bytebase.com';
1717
const canonicalUrl = SITE_URL + pathname;
1818
const imageUrl = imagePath.startsWith('http') ? imagePath : SITE_URL + imagePath;
1919
const siteName = 'Bytebase';
@@ -24,7 +24,7 @@ export default function getMetadata({
2424
alternates: {
2525
canonical: canonicalUrl,
2626
},
27-
manifest: `${SITE_URL}/manifest.json`,
27+
manifest: '/manifest.json',
2828
icons: {
2929
icon: '/favicon/favicon.png',
3030
apple: [

0 commit comments

Comments
 (0)