Skip to content

Commit 3161b51

Browse files
Merge pull request #676 from lukecotter/chore-update-favicon-url
chore: use absolute siteUrl for favicon and head links
2 parents 9aad7d5 + a028fe0 commit 3161b51

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lana-docs-site/docusaurus.config.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { themes as prismThemes } from 'prism-react-renderer';
44

55
const organizationName = 'certinia';
66
const projectName = 'debug-log-analyzer';
7+
const prodUrl = `https://${organizationName}.github.io`;
8+
const siteUrl = `${prodUrl}/${projectName}`;
79

810
const config: Config = {
911
future: {
@@ -15,7 +17,7 @@ const config: Config = {
1517
tagline:
1618
'blazing-fast VS Code extension for Salesforce. Visualize and debug Apex logs with interactive flame charts, dynamic call trees, and detailed SOQL/DML breakdowns. Identify performance bottlenecks, gain deep transaction insights and optimize slow Apex.',
1719
// Set the production url of your site here
18-
url: `https://${organizationName}.github.io`,
20+
url: prodUrl,
1921
// Set the /<baseUrl>/ pathname under which your site is served
2022
// For GitHub pages deployment, it is often '/<projectName>/'
2123
baseUrl: `/${projectName}/`,
@@ -33,7 +35,7 @@ const config: Config = {
3335
defaultLocale: 'en',
3436
locales: ['en'],
3537
},
36-
favicon: '/favicon.svg',
38+
favicon: `${siteUrl}/favicon.svg`,
3739
// Enhanced head tags for better search engine recognition
3840
// Multiple favicon formats for better compatibility
3941
headTags: [
@@ -42,23 +44,23 @@ const config: Config = {
4244
attributes: {
4345
rel: 'icon',
4446
type: 'image/svg+xml',
45-
href: `/${projectName}/favicon.svg`,
47+
href: `${siteUrl}/favicon.svg`,
4648
},
4749
},
4850
{
4951
tagName: 'link',
5052
attributes: {
5153
rel: 'icon',
5254
type: 'image/x-icon',
53-
href: `/${projectName}/favicon.ico`, // fallback for older browsers
55+
href: `${siteUrl}/favicon.ico`, // fallback for older browsers
5456
},
5557
},
5658
{
5759
tagName: 'link',
5860
attributes: {
5961
rel: 'apple-touch-icon', // Apple touch icon for better mobile display
6062
sizes: '180x180',
61-
href: `/${projectName}/favicon.png`,
63+
href: `${siteUrl}/favicon.png`,
6264
},
6365
},
6466
],

0 commit comments

Comments
 (0)