CognxSafeTrack commited on
Commit
ad21f72
Β·
1 Parent(s): e1c8d70

fix: resolve port conflict between api and worker

Browse files
Files changed (1) hide show
  1. apps/whatsapp-worker/src/index.ts +1 -1
apps/whatsapp-worker/src/index.ts CHANGED
@@ -185,7 +185,7 @@ const worker = new Worker('whatsapp-queue', async (job: Job<JobData>) => {
185
  });
186
 
187
  // ─── STARTUP ─────────────────────────────────────────────────────────────────
188
- const PORT = parseInt(process.env.PORT || '7860');
189
 
190
  const start = async () => {
191
  try {
 
185
  });
186
 
187
  // ─── STARTUP ─────────────────────────────────────────────────────────────────
188
+ const PORT = 8081; // Internal port for the bridge, avoids conflict with the main API on Railway's public PORT
189
 
190
  const start = async () => {
191
  try {