Commit 4c637b0
docs(react-native): Document SENTRY_PROJECT_ROOT for monorepo setups (#17269)
## DESCRIBE YOUR PR
Adds documentation for the new `SENTRY_PROJECT_ROOT` environment
variable in the React Native manual setup guide.
This env var allows monorepo users (NX, Turborepo) to override the
project root in Xcode build phase scripts, fixing incorrect path
resolution caused by symlinked `node_modules`.
- Added `SENTRY_PROJECT_ROOT` to both the source maps and debug symbols
upload env var sections
- Added a `<Note>` explaining when to use it
Companion SDK PR: getsentry/sentry-react-native#5961
Fixes: getsentry/sentry-react-native#2880
## IS YOUR CHANGE URGENT?
- [ ] Urgent deadline (GA date, etc.):
- [ ] Other deadline:
- [x] None: Not urgent, can wait up to 1 week+
1 parent d51cfcd commit 4c637b0
1 file changed
Lines changed: 10 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
93 | 101 | | |
94 | 102 | | |
95 | 103 | | |
| |||
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
| 121 | + | |
| 122 | + | |
113 | 123 | | |
114 | 124 | | |
115 | 125 | | |
| |||
0 commit comments