fix: 更新域名从 lhgy.net 到 www.lhgy.net

- 更新 .env.local 中的域名配置
- 更新 infra/deploy/.env.local
- 更新 compose.local.yaml 中的环境变量
- 更新 admin-web 构建参数 VITE_API_BASE_URL
- 更新小程序 app.ts 中的 apiBaseUrl
This commit is contained in:
climber
2026-10-24 19:49:59 +08:00
parent a836d0c1be
commit 4412a416ed
16 changed files with 441 additions and 20 deletions
+7 -1
View File
@@ -27,7 +27,13 @@ export class ApiExceptionFilter implements ExceptionFilter {
const mapped = this.mapException(exception);
if (mapped.status >= 500) {
const name = exception instanceof Error ? exception.name : 'UnknownError';
this.logger.error(`Unhandled ${name}; requestId=${request.requestId}`);
const details = exception instanceof Error ? {
message: exception.message,
code: (exception as any).code,
meta: JSON.stringify((exception as any).meta),
stack: exception.stack?.split('\n').slice(1, 5).join(' | '),
} : null;
this.logger.error(`Unhandled ${name}; requestId=${request.requestId}; details=${JSON.stringify(details)}`);
}
response.status(mapped.status).json({
success: false,
@@ -6,6 +6,8 @@ export interface DatabaseConnectionOptions {
user: string;
password: string;
database: string;
allowPublicKeyRetrieval?: boolean;
ssl?: boolean;
}
function requiredEnvironmentValue(name: string): string {
@@ -110,6 +112,8 @@ export class AppConfigService {
user: decodeURIComponent(url.username),
password: decodeURIComponent(url.password),
database,
allowPublicKeyRetrieval: url.searchParams.get('allowPublicKeyRetrieval') === 'true',
ssl: url.searchParams.get('useSSL') === 'true',
};
}
}
+4
View File
@@ -1,4 +1,8 @@
import 'reflect-metadata';
// BigInt JSON serialization support for Prisma 7.x - MUST be before any Prisma imports
;(BigInt.prototype as any).toJSON = function () {
return this.toString();
};
import { ValidationPipe } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';