Trying to make things work better...

This commit is contained in:
Scott Idem
2024-03-26 14:24:35 -04:00
parent 040e1e71e3
commit 4d486a580c
22 changed files with 508 additions and 410 deletions

View File

@@ -14,14 +14,12 @@ export async function load({ parent }) {
}
let event_id = null;
if (data.url.searchParams.get('event_id')) {
event_id = data.url.searchParams.get('event_id');
} else if (data.ae_loc.site_cfg_json.slct__event_id) {
if (data.ae_loc.site_cfg_json.slct__event_id) {
event_id = data.ae_loc.site_cfg_json.slct__event_id;
} else if (data.ae_loc.default__event_id) {
event_id = data.ae_loc.default__event_id;
} else {
console.log(`The slct__event_id was not found in the data.ae_loc.site_cfg_json!!!`);
console.log(`The event_id was not found in the data.ae_loc.site_cfg_json!!!`);
return false;
}
@@ -36,4 +34,6 @@ export async function load({ parent }) {
return data;
}
}
export const prerender = true;