Skip to content

Commit

Permalink
pass lanodplugin to downstreams invocations of getBaseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Feb 14, 2025
1 parent 780bf54 commit 871e401
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config/landov3.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function({
'https://localhost',
'http://docs.lando.dev',
'https://docs.lando.dev',
getBaseUrl(),
getBaseUrl(landoPlugin),
);

// if plugin then add netlify stuff
Expand Down Expand Up @@ -98,7 +98,7 @@ export default function({
}],
},
sitemap: {
hostname: getBaseUrl() ?? 'https://docs.lando.dev/',
hostname: getBaseUrl(landoPlugin) ?? 'https://docs.lando.dev/',
lastmodDateOnly: false,
transformItems: items => {
for (const item of items) {
Expand All @@ -112,7 +112,7 @@ export default function({
themeConfig: {
alert: false,
autometa: {
canonicalUrl: getBaseUrl() ?? 'https://docs.lando.dev/',
canonicalUrl: getBaseUrl(landoPlugin) ?? 'https://docs.lando.dev/',
image: 'https://docs.lando.dev/images/icon.png',
x: '@devwithlando',
},
Expand Down
6 changes: 3 additions & 3 deletions config/landov4.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function({
'https://localhost',
'http://docs.lando.dev',
'https://docs.lando.dev',
getBaseUrl(),
getBaseUrl(landoPlugin),
);

// if plugin then add netlify stuff
Expand Down Expand Up @@ -98,7 +98,7 @@ export default function({
}],
},
sitemap: {
hostname: getBaseUrl() ?? 'https://docs.lando.dev/',
hostname: getBaseUrl(landoPlugin) ?? 'https://docs.lando.dev/',
lastmodDateOnly: false,
transformItems: items => {
for (const item of items) {
Expand All @@ -112,7 +112,7 @@ export default function({
themeConfig: {
alert: false,
autometa: {
canonicalUrl: getBaseUrl() ?? 'https://docs.lando.dev/',
canonicalUrl: getBaseUrl(landoPlugin) ?? 'https://docs.lando.dev/',
image: 'https://docs.lando.dev/images/icon.png',
x: '@devwithlando',
},
Expand Down

0 comments on commit 871e401

Please sign in to comment.