22 * Centralized Configuration Module
33 *
44 * This module provides a single source of truth for all configuration values.
5- * It reads from package .json and can apply stage-wise transforms as needed.
5+ * It reads from config .json and can apply stage-wise transforms as needed.
66 *
77 * Usage:
88 * const { stage, trustedElectronDomains, productName } = require('./config');
99 */
1010
11- const packageJson = require ( './package .json' ) ;
11+ const configJson = require ( './config-effective .json' ) ;
1212
13- // Core package.json values
14- const name = packageJson . name ;
15- const identifier = packageJson . identifier ;
16- const stage = packageJson . stage ;
17- const version = packageJson . version ;
18- const productName = packageJson . productName ;
19- const description = packageJson . description ;
13+ // Core config values
14+ const identifier = configJson . identifier ;
15+ const phoenixLoadURL = configJson . phoenixLoadURL ;
16+ const stage = configJson . stage ;
17+ const version = configJson . version ;
18+ const productName = configJson . productName ;
2019
2120// Security configuration
22- const trustedElectronDomains = packageJson . trustedElectronDomains || [ ] ;
21+ const trustedElectronDomains = configJson . trustedElectronDomains || [ ] ;
2322
2423/**
2524 * Initialize configuration (call once at app startup if needed).
@@ -35,13 +34,12 @@ function initConfig() {
3534}
3635
3736module . exports = {
38- // Package info
39- name,
37+ // App info
4038 identifier,
39+ phoenixLoadURL,
4140 stage,
4241 version,
4342 productName,
44- description,
4543
4644 // Security
4745 trustedElectronDomains,
0 commit comments