تحديث src/main.ts
هذا الالتزام موجود في:
@@ -27,6 +27,10 @@ async function bootstrap(): Promise<void> {
|
||||
);
|
||||
const publicBaseUrl =
|
||||
(configService.get<string>('publicBaseUrl', { infer: true }) ?? '').replace(/\/$/, '');
|
||||
const emailEnabled = configService.get<boolean>('email.enabled', { infer: true }) ?? false;
|
||||
const emailSmtpHost = configService.get<string>('email.smtpHost', { infer: true }) ?? '';
|
||||
const emailSmtpUser = configService.get<string>('email.smtpUser', { infer: true }) ?? '';
|
||||
const emailFromEmail = configService.get<string>('email.fromEmail', { infer: true }) ?? '';
|
||||
const uploadsDir = join(process.cwd(), storageBasePath);
|
||||
|
||||
if (storageProvider === 'local' && !existsSync(uploadsDir)) {
|
||||
@@ -110,6 +114,10 @@ async function bootstrap(): Promise<void> {
|
||||
await app.listen(port, host);
|
||||
appLogger.log(`Server listening on http://${host}:${port}`, 'Bootstrap');
|
||||
appLogger.log(`Resolved PUBLIC_BASE_URL=${publicBaseUrl || `http://localhost:${port}`}`, 'Bootstrap');
|
||||
appLogger.log(
|
||||
`Email config: enabled=${emailEnabled}, smtpHost=${emailSmtpHost || 'unset'}, smtpUserConfigured=${emailSmtpUser ? 'yes' : 'no'}, fromEmailConfigured=${emailFromEmail ? 'yes' : 'no'}`,
|
||||
'Bootstrap',
|
||||
);
|
||||
}
|
||||
|
||||
void bootstrap();
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم