Initalize

This commit is contained in:
Your Name
2026-05-03 12:12:57 -04:00
commit 38652eb9b5
10603 changed files with 1762136 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
export default function({
base = '/v/',
build = 'stable',
cache = true,
match = 'v[0-9].*',
mvbase = undefined,
satisfies = '*',
siteBase = '/',
} = {}) {
// if no mvbase then combine it with sitebase as usual, this is probabyl base reality
if (!mvbase) mvbase = `/${siteBase}/${base}/`.replace(/\/{2,}/g, '/');
// if we are in a MVB then the OG base can get lost so rebase on that
if (process.env.VPL_MVB_BUILD) mvbase = `/${process.env.VPL_MVB_BASE}/${base}/`.replace(/\/{2,}/g, '/');
if (process.env.LANDO_MVB_BUILD) mvbase = `/${process.env.LANDO_MVB_BASE}/${base}/`.replace(/\/{2,}/g, '/');
// return
return {base, build, cache, match, mvbase, satisfies};
};