@@ -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]
|
||||
|
||||
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user