fix(main): 🐛 resolve duplicate port entries in config files
This commit is contained in:
parent
4be4d30075
commit
e4be7e875e
7 changed files with 13 additions and 13 deletions
4
packages/imajin-app/dist/config/index.d.ts
vendored
4
packages/imajin-app/dist/config/index.d.ts
vendored
|
|
@ -17,8 +17,8 @@ declare const PORTS: {
|
|||
readonly imagegenAssistant: 8003;
|
||||
/** SDXL image generation service (diffusers) */
|
||||
readonly imageGeneration: 8002;
|
||||
/** Image post-processing service (Sharp/NestJS) */
|
||||
readonly imageProcessing: 8004;
|
||||
/** Image post-processing service (Sharp/NestJS) - port 8005 to avoid i18n conflict */
|
||||
readonly imageProcessing: 8005;
|
||||
};
|
||||
type PortKey = keyof typeof PORTS;
|
||||
/**
|
||||
|
|
|
|||
4
packages/imajin-app/dist/config/index.js
vendored
4
packages/imajin-app/dist/config/index.js
vendored
|
|
@ -6,8 +6,8 @@ var PORTS = {
|
|||
imagegenAssistant: 8003,
|
||||
/** SDXL image generation service (diffusers) */
|
||||
imageGeneration: 8002,
|
||||
/** Image post-processing service (Sharp/NestJS) */
|
||||
imageProcessing: 8004
|
||||
/** Image post-processing service (Sharp/NestJS) - port 8005 to avoid i18n conflict */
|
||||
imageProcessing: 8005
|
||||
};
|
||||
function getPort(service) {
|
||||
return PORTS[service];
|
||||
|
|
|
|||
2
packages/imajin-app/dist/config/index.js.map
vendored
2
packages/imajin-app/dist/config/index.js.map
vendored
File diff suppressed because one or more lines are too long
4
packages/imajin-app/dist/index.js
vendored
4
packages/imajin-app/dist/index.js
vendored
|
|
@ -6,8 +6,8 @@ var PORTS = {
|
|||
imagegenAssistant: 8003,
|
||||
/** SDXL image generation service (diffusers) */
|
||||
imageGeneration: 8002,
|
||||
/** Image post-processing service (Sharp/NestJS) */
|
||||
imageProcessing: 8004
|
||||
/** Image post-processing service (Sharp/NestJS) - port 8005 to avoid i18n conflict */
|
||||
imageProcessing: 8005
|
||||
};
|
||||
function getPort(service) {
|
||||
return PORTS[service];
|
||||
|
|
|
|||
2
packages/imajin-app/dist/index.js.map
vendored
2
packages/imajin-app/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
8
packages/imajin-electron/dist/index.js
vendored
8
packages/imajin-electron/dist/index.js
vendored
|
|
@ -1,12 +1,12 @@
|
|||
import {
|
||||
IPC_CHANNELS,
|
||||
registerImageGenIPC
|
||||
} from "./chunk-SIEHCPCU.js";
|
||||
import {
|
||||
DEFAULT_SERVICES,
|
||||
ImageGenServiceManager,
|
||||
createServiceManager
|
||||
} from "./chunk-UL4CZZG5.js";
|
||||
import {
|
||||
IPC_CHANNELS,
|
||||
registerImageGenIPC
|
||||
} from "./chunk-SIEHCPCU.js";
|
||||
|
||||
// src/index.ts
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { Logger } from '@nestjs/common';
|
|||
import { AppModule } from './app.module.js';
|
||||
async function bootstrap() {
|
||||
const logger = new Logger('Bootstrap');
|
||||
const port = process.env.PORT ?? 8003;
|
||||
const port = process.env.PORT ?? 8005;
|
||||
const app = await NestFactory.create(AppModule);
|
||||
// Enable CORS
|
||||
app.enableCors({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue