We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63a76f1 commit 1b9e2c5Copy full SHA for 1b9e2c5
src/utils/get-metadata.ts
@@ -13,7 +13,7 @@ export default function getMetadata({
13
pathname,
14
imagePath = DEFAULT_IMAGE_PATH,
15
}: Metadata) {
16
- const SITE_URL = process.env.NEXT_PUBLIC_DEFAULT_SITE_URL;
+ const SITE_URL = process.env.NEXT_PUBLIC_DEFAULT_SITE_URL || 'https://www.bytebase.com';
17
const canonicalUrl = SITE_URL + pathname;
18
const imageUrl = imagePath.startsWith('http') ? imagePath : SITE_URL + imagePath;
19
const siteName = 'Bytebase';
@@ -24,7 +24,7 @@ export default function getMetadata({
24
alternates: {
25
canonical: canonicalUrl,
26
},
27
- manifest: `${SITE_URL}/manifest.json`,
+ manifest: '/manifest.json',
28
icons: {
29
icon: '/favicon/favicon.png',
30
apple: [
0 commit comments