fix(core): Update posthog proxy (no-changelog) (#22328)

This commit is contained in:
Milorad FIlipović 2025-11-26 14:31:12 +01:00 committed by GitHub
parent 5cb594d7ef
commit 11d38504d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,7 @@ export class PostHogController {
return await this.proxy(req, res, next);
}
// Static files - specific endpoint for array.js
// Static files - specific endpoint for array.js and lazy-recorder.js
@Get('/static/array.js', {
skipAuth: true,
usesTemplates: true,
@ -82,6 +82,15 @@ export class PostHogController {
void this.proxy(req, res, next);
}
@Get('/static/lazy-recorder.js', {
skipAuth: true,
usesTemplates: true,
rateLimit: { limit: 50, windowMs: 60_000 },
})
staticLazyRecorderJs(req: AuthenticatedRequest, res: Response, next: NextFunction) {
void this.proxy(req, res, next);
}
// Configuration endpoints for array.js
@Get('/array/:apiKey/config.js', {
skipAuth: true,