@teamscala/service-boot 0.23.343 → 0.23.344
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/two-phase-boot.ts +14 -5
package/package.json
CHANGED
package/src/two-phase-boot.ts
CHANGED
|
@@ -504,11 +504,20 @@ export async function buildFullApp(
|
|
|
504
504
|
`${Object.keys(components).length} component(s)`,
|
|
505
505
|
);
|
|
506
506
|
|
|
507
|
-
// Set the real page handler so the dynamic handler in Phase 1 can delegate to it
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
)
|
|
507
|
+
// Set the real page handler so the dynamic handler in Phase 1 can delegate to it.
|
|
508
|
+
// Client-only services (render_mode=client) have no SSR page handler — skip
|
|
509
|
+
// (they serve via the client bundle, never SSR). Guarded so undefined is a
|
|
510
|
+
// no-op rather than a crash.
|
|
511
|
+
if (deps.createPageHandler) {
|
|
512
|
+
setPageHandler(deps.createPageHandler);
|
|
513
|
+
log.info(
|
|
514
|
+
`[two-phase-boot:${serviceSlug}] Real page handler registered - page routes now delegate to full app`,
|
|
515
|
+
);
|
|
516
|
+
} else {
|
|
517
|
+
log.info(
|
|
518
|
+
`[two-phase-boot:${serviceSlug}] Client-only mode (render_mode=client) — no SSR page handler registered`,
|
|
519
|
+
);
|
|
520
|
+
}
|
|
512
521
|
|
|
513
522
|
const resolvedBlocks = loaded.map((slug) => ({
|
|
514
523
|
slug,
|