fix(stage-web): docs path

Signed-off-by: Neko Ayaka <neko@ayaka.moe>
This commit is contained in:
Neko Ayaka
2025-03-06 19:33:45 +08:00
parent ff7c97602a
commit d540c05f4d
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[build]
base = "/"
command = "pnpm -F @proj-airi/stage-web... run build && BASE_URL=/docs pnpm -F @proj-airi/docs... run build && ls -la && mv ./docs/dist ./apps/stage-web/dist/docs"
command = "pnpm -F @proj-airi/stage-web... run build && pnpm -F @proj-airi/docs... run build:base && ls -la && mv ./docs/dist ./apps/stage-web/dist/docs"
publish = "/apps/stage-web/dist"
[build.environment]
+1
View File
@@ -6,6 +6,7 @@
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"build:base": "astro build --base /docs",
"preview": "astro preview",
"astro": "astro"
},
@@ -122,6 +122,12 @@ async function triggerHooks(stage: TransitionStage, data: any = {}) {
}
async function triggerTransitionAsyncFn(params: StageTransitionCommonParams, next: NavigationCallback, resolve: (value: void | PromiseLike<void>) => void) {
if (params.name === 'none' || !params.name) {
next()
resolve()
return
}
const transition = transitions.value[params.name]
if (!transition) {
console.error(`Transition ${params.name} not found`)