ClickHouse query client startup crash fixed
Self-hosted Trigger.dev containers no longer crash on boot due to strict URL parameter validation in the ClickHouse client.
Self-hosted Trigger.dev environments crashed on startup when connecting to ClickHouse. The system's Docker entrypoint automatically injects a secure parameter into the database URL, which the ClickHouse query client rejected as an unknown parameter.
The query client initialization now strips this parameter before establishing the connection, matching the behavior of the system's other database clients. Docker deployments boot successfully without requiring manual overrides of the database connection strings.
View Original GitHub Description
Closes #3184
✅ Checklist
- I have followed every step in the contributing guide
- The PR title follows the convention.
- I ran and tested the code works
Changelog
The initializeQueryClickhouseClient() function was missing the url.searchParams.delete("secure") call that the other two sibling ClickHouse client init functions already had. This caused a startup crash (Error: Unknown URL parameters: secure) when QUERY_CLICKHOUSE_URL fell back to CLICKHOUSE_URL which contains ?secure=false.