diff --git a/backend/services/mpc-service/src/main.ts b/backend/services/mpc-service/src/main.ts index 4efdde5b..2975d6b3 100644 --- a/backend/services/mpc-service/src/main.ts +++ b/backend/services/mpc-service/src/main.ts @@ -20,9 +20,9 @@ async function bootstrap() { // Get config service const configService = app.get(ConfigService); - const port = configService.get('port', 3006); - const apiPrefix = configService.get('apiPrefix', 'api/v1'); - const env = configService.get('env', 'development'); + const port = parseInt(process.env.APP_PORT || '3006', 10); + const apiPrefix = process.env.API_PREFIX || 'api/v1'; + const env = process.env.NODE_ENV || 'development'; // Set global prefix app.setGlobalPrefix(apiPrefix);