Skip to content

Commit

Permalink
fixed bug causing mvb.build to not use a user specified build alias
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Nov 4, 2024
1 parent 96d7cdd commit 7a3b1a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})

* Fixed bug in `normalize-mvb` causing `multiVersionBuild.build` to sometimes not be set correctly

## v1.1.0-beta.17 - [November 1, 2024](https://github.com/lando/vitepress-theme-default-plus/releases/tag/v1.1.0-beta.17)

* Updated GTM tracking
Expand Down
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build]
base = "./"
publish = "docs/.vitepress/dist/"
command = "env && npx mvb docs"
command = "npx mvb docs"

[context.deploy-preview]
command = "env && npm run build"
command = "npm run build"
# https://github.com/munter/netlify-plugin-checklinks#readme
[[context.deploy-preview.plugins]]
package = "netlify-plugin-checklinks"
Expand Down
3 changes: 2 additions & 1 deletion utils/normalize-mvb.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export default function({
absoluteBase = undefined,
base = '/v/',
build = 'stable',
cache = true,
match = 'v[0-9].*',
satisfies = '*',
Expand All @@ -14,6 +15,6 @@ export default function({
if (process.env.LANDO_MVB_BUILD) absoluteBase = `/${process.env.LANDO_MVB_BASE}/${base}/`.replace(/\/{2,}/g, '/');

// return
return {absoluteBase, base, cache, match, satisfies};
return {absoluteBase, base, build, cache, match, satisfies};
};

0 comments on commit 7a3b1a2

Please sign in to comment.