DECK Frontend v4.6 - Fix API configuration for production
- Change API_BASE to https://tzrtech.org/api (HST server) - Update all schemas to 'public' (actual DB schema) - Fixes TreeView data loading in production Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -734,26 +734,26 @@ body {
|
|||||||
// 1. CONFIG
|
// 1. CONFIG
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
const CONFIG = {
|
const CONFIG = {
|
||||||
API_BASE: "/api",
|
API_BASE: "https://tzrtech.org/api",
|
||||||
IMG_BASE: "https://atc.tzzrdeck.me",
|
IMG_BASE: "https://atc.tzzrdeck.me",
|
||||||
|
|
||||||
BASES: {
|
BASES: {
|
||||||
// Taxonomía
|
// Taxonomía (public schema on HST server)
|
||||||
hst: { schema: "tzzr_core_hst", table: "hst", hasGroups: true, hasLibraries: true },
|
hst: { schema: "public", table: "hst", hasGroups: true, hasLibraries: true },
|
||||||
flg: { schema: "tzzr_core_hst", table: "flg", hasGroups: false, hasLibraries: true },
|
flg: { schema: "public", table: "flg", hasGroups: false, hasLibraries: true },
|
||||||
itm: { schema: "tzzr_core_itm_base", table: "itm", hasGroups: false, hasLibraries: true },
|
itm: { schema: "public", table: "itm", hasGroups: false, hasLibraries: true },
|
||||||
loc: { schema: "tzzr_core_itm_base", table: "loc", hasGroups: false, hasLibraries: true },
|
loc: { schema: "public", table: "loc", hasGroups: false, hasLibraries: true },
|
||||||
ply: { schema: "tzzr_core_itm_base", table: "ply", hasGroups: false, hasLibraries: true },
|
ply: { schema: "public", table: "ply", hasGroups: false, hasLibraries: true },
|
||||||
// Producción
|
// Producción (tables pending)
|
||||||
mst: { schema: "tzzr_core_produccion", table: "mst", hasGroups: false, hasLibraries: true },
|
mst: { schema: "public", table: "mst", hasGroups: false, hasLibraries: true },
|
||||||
bck: { schema: "tzzr_core_produccion", table: "bck", hasGroups: false, hasLibraries: true },
|
bck: { schema: "public", table: "bck", hasGroups: false, hasLibraries: true },
|
||||||
mth: { schema: "tzzr_core_produccion", table: "mth", hasGroups: false, hasLibraries: true },
|
mth: { schema: "public", table: "mth", hasGroups: false, hasLibraries: true },
|
||||||
// Secretaría
|
// Secretaría
|
||||||
atc: { schema: "tzzr_core_secretaria", table: "atc", hasGroups: false, hasLibraries: true },
|
atc: { schema: "public", table: "atc", hasGroups: false, hasLibraries: true },
|
||||||
oracle: { schema: "tzzr_core_secretaria", table: "oracle", hasGroups: false, hasLibraries: true },
|
oracle: { schema: "public", table: "oracle", hasGroups: false, hasLibraries: true },
|
||||||
// Comunicación
|
// Comunicación (different servers - schemas TBD)
|
||||||
mail: { schema: "mail_manager", table: "clara_registros", hasGroups: false, hasLibraries: false, orderBy: "timestamp_entrada.desc" },
|
mail: { schema: "public", table: "clara_registros", hasGroups: false, hasLibraries: false, orderBy: "timestamp_entrada.desc" },
|
||||||
chat: { schema: "context_manager", table: "messages", hasGroups: false, hasLibraries: false, orderBy: "created_at.desc" }
|
chat: { schema: "public", table: "messages", hasGroups: false, hasLibraries: false, orderBy: "created_at.desc" }
|
||||||
},
|
},
|
||||||
|
|
||||||
CATEGORIES: {
|
CATEGORIES: {
|
||||||
|
|||||||
Reference in New Issue
Block a user