CognxSafeTrack commited on
Commit
0de1348
·
1 Parent(s): a72c12d

fix: port alignment, cascade delete, and audio pipeline hardening

Browse files
apps/api/src/index.ts CHANGED
@@ -197,7 +197,7 @@ server.get('/privacy', async (_req, reply) => {
197
  const start = async () => {
198
  try {
199
  await setupRateLimit();
200
- const port = parseInt(process.env.PORT || '3001');
201
  await server.listen({ port, host: '0.0.0.0' });
202
  console.log(`Server listening on http://0.0.0.0:${port}`);
203
  } catch (err) {
 
197
  const start = async () => {
198
  try {
199
  await setupRateLimit();
200
+ const port = parseInt(process.env.PORT || '8080');
201
  await server.listen({ port, host: '0.0.0.0' });
202
  console.log(`Server listening on http://0.0.0.0:${port}`);
203
  } catch (err) {
apps/whatsapp-worker/package.json CHANGED
@@ -5,7 +5,7 @@
5
  "scripts": {
6
  "dev": "tsx watch src/index.ts",
7
  "build": "pnpm --filter @repo/database generate && tsc --build",
8
- "start": "npx tsx ../api/src/index.ts & sleep 5 && node dist/index.js & wait"
9
  },
10
  "dependencies": {
11
  "@prisma/client": "^5.0.0",
 
5
  "scripts": {
6
  "dev": "tsx watch src/index.ts",
7
  "build": "pnpm --filter @repo/database generate && tsc --build",
8
+ "start": "npx tsx ../api/src/index.ts & sleep 7 && node dist/index.js & wait"
9
  },
10
  "dependencies": {
11
  "@prisma/client": "^5.0.0",