feat(collector): Initialize and configure BeaconModule for data collection in main.ts

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
autocommit 2026-05-16 18:57:18 -07:00
parent 33ac86eaee
commit 7f91ccc3a5

View file

@ -35,7 +35,10 @@ async function bootstrap() {
// Global prefix — aligns with @lilith/analytics-client which POSTs to /analytics/track/*
// Health endpoint excluded so Docker healthchecks can hit /health directly
app.setGlobalPrefix('analytics', {
exclude: [{ path: 'health', method: RequestMethod.GET }],
exclude: [
{ path: 'health', method: RequestMethod.GET },
{ path: 'beacon.js', method: RequestMethod.GET },
],
});
const port = process.env['PORT'] || 4001;