fix(api,worker): general improvements for workers, debugging and logging

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-12-03 13:25:05 +01:00
parent a72ac97f93
commit ee0f7e7d75
9 changed files with 97 additions and 26 deletions

View File

@@ -16,6 +16,7 @@ import { getRedisPub } from '@openpanel/redis';
import type { AppRouter } from '@openpanel/trpc';
import { appRouter, createContext } from '@openpanel/trpc';
import sourceMapSupport from 'source-map-support';
import {
healthcheck,
healthcheckQueue,
@@ -33,6 +34,8 @@ import trackRouter from './routes/track.router';
import webhookRouter from './routes/webhook.router';
import { logger } from './utils/logger';
sourceMapSupport.install();
declare module 'fastify' {
interface FastifyRequest {
projectId: string;