fix(api,ci): remove type-only imports for DI and isolate CI ports from dev
- Remove `type` keyword from NestJS injectable class imports across all modules to fix runtime DI resolution (330+ handler/listener files) - Offset CI docker-compose ports (5433/6380/8109/9002) to avoid conflicts with running dev containers - Update .env.test, playwright.config.ts, and e2e workflow to use isolated CI ports with configurable overrides - Fix prisma/seed.ts to use deterministic IDs for Prisma 7 upsert compatibility (phoneHash replaced phone as unique index) - Add dedicated Docker bridge network for CI service containers Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { InjectMetric } from '@willsoto/nestjs-prometheus';
|
||||
import { type Counter, type Gauge, type Histogram } from 'prom-client';
|
||||
import { Counter, Gauge, Histogram } from 'prom-client';
|
||||
import {
|
||||
GOODGO_LISTINGS_CREATED_TOTAL,
|
||||
GOODGO_PAYMENTS_PROCESSED_TOTAL,
|
||||
|
||||
@@ -7,8 +7,8 @@ import {
|
||||
Logger,
|
||||
} from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger';
|
||||
import { type MetricsService } from '../../infrastructure/metrics.service';
|
||||
import { type WebVitalsBatchDto } from '../dto/web-vitals.dto';
|
||||
import { MetricsService } from '../../infrastructure/metrics.service';
|
||||
import { WebVitalsBatchDto } from '../dto/web-vitals.dto';
|
||||
|
||||
/**
|
||||
* Public endpoint for receiving Core Web Vitals from the frontend.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import {
|
||||
Injectable,
|
||||
type CallHandler,
|
||||
CallHandler,
|
||||
type ExecutionContext,
|
||||
type NestInterceptor,
|
||||
NestInterceptor,
|
||||
} from '@nestjs/common';
|
||||
import { type Request, type Response } from 'express';
|
||||
import { type Observable, tap } from 'rxjs';
|
||||
import { Request, Response } from 'express';
|
||||
import { Observable, tap } from 'rxjs';
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
||||
import { MetricsService } from '../../infrastructure/metrics.service';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user