Hardened root layout initialization and ghost fallback logic to resolve 500 errors during API downtime.

This commit is contained in:
Scott Idem
2026-01-16 16:51:11 -05:00
parent a10accfaaf
commit 24ccf38412
4 changed files with 73 additions and 66 deletions

View File

@@ -19,16 +19,16 @@ export async function load({ params, parent }) {
const event_location_id = params.event_location_id;
if (!event_location_id) {
console.log(
console.warn(
`ae events_pres_mgmt location [event_location_id] +page.ts: The event_location_id was not found in the params!!!`
);
error(404, {
message: 'Location not found'
});
// error(404, {
// message: 'Location not found'
// });
}
ae_acct.slct.event_location_id = event_location_id;
if (browser) {
if (browser && event_location_id) {
// Load event location object
const load_event_location_obj = await events_func.load_ae_obj_id__event_location({
api_cfg: ae_acct.api,