@bleedingdev/modern-js-create 3.2.0-ultramodern.8 → 3.2.0-ultramodern.9

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.
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">=20"
23
23
  },
24
- "version": "3.2.0-ultramodern.8",
24
+ "version": "3.2.0-ultramodern.9",
25
25
  "types": "./dist/types/index.d.ts",
26
26
  "main": "./dist/index.js",
27
27
  "bin": {
@@ -41,7 +41,7 @@
41
41
  "@types/node": "^25.8.0",
42
42
  "@typescript/native-preview": "7.0.0-dev.20260516.1",
43
43
  "tsx": "^4.22.0",
44
- "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.8"
44
+ "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.9"
45
45
  },
46
46
  "publishConfig": {
47
47
  "registry": "https://registry.npmjs.org/",
@@ -54,6 +54,6 @@
54
54
  "start": "node ./dist/index.js"
55
55
  },
56
56
  "ultramodern": {
57
- "frameworkVersion": "3.2.0-ultramodern.8"
57
+ "frameworkVersion": "3.2.0-ultramodern.9"
58
58
  }
59
59
  }
@@ -9,7 +9,7 @@ import { bffEffectApi } from '../../shared/effect/api';
9
9
  const greetingsLayer = HttpApiBuilder.group(
10
10
  bffEffectApi,
11
11
  'greetings',
12
- (handlers: any) =>
12
+ handlers =>
13
13
  handlers.handle('hello', () =>
14
14
  Effect.succeed({
15
15
  message: 'Hello from Effect HttpApi',
@@ -14,6 +14,9 @@ const enableTelemetryExporters =
14
14
  process.env['MODERN_BASELINE_ENABLE_TELEMETRY_EXPORTERS'] !== 'false';
15
15
  const telemetryFailLoudStartup =
16
16
  process.env['MODERN_TELEMETRY_FAIL_LOUD_STARTUP'] !== 'false';
17
+ const otlpEndpoint = process.env['MODERN_TELEMETRY_OTLP_ENDPOINT'];
18
+ const victoriaMetricsEndpoint =
19
+ process.env['MODERN_TELEMETRY_VICTORIA_ENDPOINT'];
17
20
 
18
21
  // https://bleedingdev.github.io/ultramodern.js/configure/app/usage.html
19
22
  export default defineConfig(
@@ -44,8 +47,10 @@ export default defineConfig(
44
47
  enableModuleFederationSSR,
45
48
  enableTelemetryExporters,
46
49
  telemetryFailLoudStartup,
47
- otlpEndpoint: process.env['MODERN_TELEMETRY_OTLP_ENDPOINT'],
48
- victoriaMetricsEndpoint: process.env['MODERN_TELEMETRY_VICTORIA_ENDPOINT'],
50
+ ...(typeof otlpEndpoint === 'string' ? { otlpEndpoint } : {}),
51
+ ...(typeof victoriaMetricsEndpoint === 'string'
52
+ ? { victoriaMetricsEndpoint }
53
+ : {}),
49
54
  },
50
55
  ),
51
56
  );