fix: remove .js extensions from monitoring module imports

Next.js webpack build cannot resolve .js extensions for .ts files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Martin Porwoll 2026-02-17 11:51:25 +00:00
parent bb02128b28
commit 884d33c0ae
5 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@
*/ */
import type { Payload } from 'payload' import type { Payload } from 'payload'
import type { AlertCondition, AlertSeverity, SystemMetrics } from './types.js' import type { AlertCondition, AlertSeverity, SystemMetrics } from './types'
// ============================================================================ // ============================================================================
// Pure Functions // Pure Functions

View file

@ -5,7 +5,7 @@
* Falls back to console output when Payload is not yet initialized. * Falls back to console output when Payload is not yet initialized.
*/ */
import type { LogLevel, LogSource } from './types.js' import type { LogLevel, LogSource } from './types'
const LOG_LEVELS: Record<LogLevel, number> = { const LOG_LEVELS: Record<LogLevel, number> = {
debug: 0, debug: 0,

View file

@ -21,9 +21,9 @@ import type {
SecurityMetricsStatus, SecurityMetricsStatus,
PerformanceMetrics, PerformanceMetrics,
SystemMetrics, SystemMetrics,
} from './types.js' } from './types'
import { checkSecretsHealth } from '../security/secrets-health.js' import { checkSecretsHealth } from '../security/secrets-health'
import { getSecurityMetricsSnapshot } from '../security/security-observability.js' import { getSecurityMetricsSnapshot } from '../security/security-observability'
// ============================================================================ // ============================================================================
// System Health // System Health

View file

@ -7,7 +7,7 @@
* error rates, and throughput. * error rates, and throughput.
*/ */
import type { PerformanceEntry, PerformanceMetrics } from './types.js' import type { PerformanceEntry, PerformanceMetrics } from './types'
const PERIOD_MS: Record<string, number> = { const PERIOD_MS: Record<string, number> = {
'1h': 3_600_000, '1h': 3_600_000,

View file

@ -6,8 +6,8 @@
* sie in MonitoringSnapshots. Evaluiert dabei Alert-Regeln. * sie in MonitoringSnapshots. Evaluiert dabei Alert-Regeln.
*/ */
import { collectMetrics } from './monitoring-service.js' import { collectMetrics } from './monitoring-service'
import { AlertEvaluator } from './alert-evaluator.js' import { AlertEvaluator } from './alert-evaluator'
let interval: ReturnType<typeof setInterval> | null = null let interval: ReturnType<typeof setInterval> | null = null
const alertEvaluator = new AlertEvaluator() const alertEvaluator = new AlertEvaluator()