Files
core/src/index.js
T
hykocx 242ea69664 feat(storage): refactor storage config and remove module registry
Introduce a dedicated `storage-config.js` for registering public
prefixes and access policies via `configureStorageApi()`, replacing the
previous `getAllStoragePublicPrefixes` / `getAllStorageAccessPolicies`
imports from the module registry.

Remove `getAllApiRoutes()` from the router so module-level routes are no
longer auto-collected; feature routes must now be registered explicitly
via `registerFeatureRoutes()` during `initializeZen()`.

Update `.env.example` to document separate `ZEN_STORAGE_PROVIDER`,
`ZEN_STORAGE_B2_*` variables for Backblaze B2 alongside the existing
Cloudflare R2 variables, making provider selection explicit.

Clean up admin navigation and page components to drop module-injected
nav entries, keeping only core and system sections.
2026-04-14 17:43:06 -04:00

39 lines
1.3 KiB
JavaScript

// Export database utilities as namespace
export * as db from "./core/database/index.js";
// Export authentication module as namespace
export * as auth from "./features/auth/index.js";
// Export admin module as namespace
export * as admin from "./features/admin/index.js";
// Export API module as namespace
export * as api from "./core/api/index.js";
// Export email utilities as namespace
export * as email from "./core/email/index.js";
// Export cron utilities as namespace
export * as cron from "./core/cron/index.js";
// Export payment utilities as namespace
export * as payments from "./core/payments/index.js";
export * as stripe from "./core/payments/stripe.js";
// Export PDF utilities as namespace
export * as pdf from "./core/pdf/index.js";
// NOTE: Toast components are CLIENT ONLY - import from '@zen/core/toast'
// Do not export here to avoid mixing client/server boundaries
// Export app configuration utilities
export { getAppName, getAppConfig, getSessionCookieName, getPublicBaseUrl } from "./shared/lib/appConfig.js";
// Export initialization utilities
export { initializeZen, resetZenInitialization } from "./shared/lib/init.js";
// Export date utilities
export * as dates from "./shared/lib/dates.js";
// Export currency utilities
export * as currency from "./shared/utils/currency.js";