Commit e6aec2d
committed
fix(LeanEngine): X-LC-Prod request header
Previously, the X-LC-Prod header was `1` (production) in stage instance,
which causes data modifications in stage environment triggers
hooks in production environment.
This commit fixes this issue,
the X-LC-Prod will be set according to environment variables:
- whether in stage or production instance
- whether the user has a stage instance (when debug locally)
Related support ticket: 203331 parent fea3240 commit e6aec2d
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
| |||
0 commit comments