docthub-core-components 2.90.0 → 2.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,13 +52,7 @@ export declare const FOOTER_ROUTES_QA: FooterRoutes;
52
52
  */
53
53
  export declare const FOOTER_ROUTES_PROD: FooterRoutes;
54
54
  /**
55
- * Canonical footer routes used by presets to build the default link arrays.
56
- *
57
- * Presets always reference QA URLs as stable canonical values.
58
- * `DoctFooter` remaps them at render time to the correct environment
59
- * via `resolveNavEnv()`, which avoids baking environment-dependent
60
- * URLs into module-level constants — a requirement for SSR in
61
- * non-Vite bundlers (Next.js, Turbopack) where `window` and
62
- * `import.meta.env.PROD` are unavailable at module init time.
55
+ * Active footer routes resolved by nav-env (hostname or VITE_NAV_ENV).
56
+ * Uses the same pattern as INDIVIDUAL_NAV_ROUTES for consistency.
63
57
  */
64
- export declare const FOOTER_ROUTES_CANONICAL: FooterRoutes;
58
+ export declare const FOOTER_ROUTES: FooterRoutes;
@@ -4,8 +4,10 @@
4
4
  *
5
5
  * Resolution order:
6
6
  * 1. VITE_NAV_ENV — explicit override (qa | production | prod | dev)
7
- * 2. window.location.hostname — localhost → QA; docthub.com → prod; dochub.in → QA
8
- * 3. import.meta.env.PROD Vite prod build prod
7
+ * 2. window.location.hostname — localhost → QA; *.com → prod; *.in → QA
8
+ * (Hostname takes precedence over build flags to ensure correct routing
9
+ * when a QA site like dochub.in is deployed as a production build.)
10
+ * 3. import.meta.env.PROD — Vite prod build → prod (SSR fallback only)
9
11
  * 4. process.env.NODE_ENV — Node/Next.js SSR fallback → "production" means prod
10
12
  * 5. Default → QA
11
13
  */
@@ -1,5 +1,5 @@
1
- /// <reference types="vite/client" />
2
-
3
- interface ImportMetaEnv {
4
- readonly VITE_NAV_ENV?: "qa" | "dev" | "production" | "prod";
5
- }
1
+ /// <reference types="vite/client" />
2
+
3
+ interface ImportMetaEnv {
4
+ readonly VITE_NAV_ENV?: "qa" | "dev" | "production" | "prod";
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docthub-core-components",
3
- "version": "2.90.0",
3
+ "version": "2.92.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",