Need to work on not havnig the account ID set
This commit is contained in:
@@ -6,7 +6,7 @@ import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
|
||||
import { get } from 'svelte/store';
|
||||
|
||||
|
||||
async function handle_load_ae_obj_id__site_domain({fqdn, try_cache=false}) {
|
||||
function handle_load_ae_obj_id__site_domain({fqdn, try_cache=false}) {
|
||||
console.log(`*** handle_load_ae_obj_id__site_domain() *** fqdn=${fqdn}`);
|
||||
|
||||
let params = {};
|
||||
@@ -20,7 +20,7 @@ async function handle_load_ae_obj_id__site_domain({fqdn, try_cache=false}) {
|
||||
use_alt_table: true, // NOTE: This will use the table_name_alt value instead of the table_name value in the API config.
|
||||
use_alt_base: true, // NOTE: This will use the base_name_alt value instead of the base_name value in the API config.
|
||||
params: params,
|
||||
log_lvl: 2
|
||||
log_lvl: 1
|
||||
})
|
||||
.then(function (site_domain_obj_get_result) {
|
||||
if (site_domain_obj_get_result) {
|
||||
@@ -44,7 +44,7 @@ async function handle_load_ae_obj_id__site_domain({fqdn, try_cache=false}) {
|
||||
}
|
||||
|
||||
let data_store_obj_get_promises: key_val = {};
|
||||
async function handle_get_data_store_obj_w_code({ code=null, data_type='text' }) {
|
||||
function handle_get_data_store_obj_w_code({ code=null, data_type='text' }) {
|
||||
console.log(`*** handle_get_data_store_obj_w_code() *** code=${code}`);
|
||||
|
||||
if (!code) {
|
||||
@@ -129,11 +129,8 @@ export function load({ params, url }) { // route
|
||||
|
||||
}
|
||||
|
||||
// ae_core = {
|
||||
// 'account_id': site_domain_results.account_id_random
|
||||
// }
|
||||
|
||||
let data_struct = {
|
||||
ae_core: ae_core,
|
||||
params: params,
|
||||
sections: [
|
||||
{ slug: 'new', title: 'New Test' },
|
||||
@@ -141,13 +138,12 @@ export function load({ params, url }) { // route
|
||||
{ slug: 'test', title: 'Test Test' },
|
||||
],
|
||||
url: url,
|
||||
ae_core: ae_core,
|
||||
|
||||
};
|
||||
return data_struct;
|
||||
}
|
||||
|
||||
|
||||
// export const ssr = false;
|
||||
// export const prerender = true;
|
||||
// export const prerender = true
|
||||
// export const trailingSlash = 'always'; // 'never' | 'always' | 'ignore'
|
||||
/// export const trailingSlash = 'always'; // 'never' | 'always' | 'ignore'
|
||||
Reference in New Issue
Block a user