Commit 3b2f4b7
committed
refactor(webhook): make webhook base URL configurable
Replace hardcoded webhook base URL with configurable value from ConfigService.
Changes:
- Add ConfigService dependency to WebhookService
- Update generateWebhookUrl() to read WEBHOOK_BASE_URL from config
- Maintain backward compatibility with default value 'https://api.refly.ai'
This allows users to configure custom webhook endpoints via environment
variables, supporting self-hosted and enterprise deployments.
Closes TODO: Get base URL from config1 parent 5afcaac commit 3b2f4b7
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
806 | 808 | | |
807 | 809 | | |
808 | 810 | | |
809 | | - | |
810 | | - | |
| 811 | + | |
| 812 | + | |
811 | 813 | | |
812 | 814 | | |
813 | 815 | | |
| |||
0 commit comments