Repository navigation
Commit 5cb84bc
fix(studio-apps): gate a disabled app's ui bundle behind the same switch
The enablement predicate already decides what /api/apps reports and what
the proxy forwards, but the static tier served /apps/<name>/ui/* for any
installed app. A disabled app's entry could still be imported and mounted
by any page, so the switch the app list offers only held for half the app.
createStaticHandler now takes the same isAppEnabled predicate and answers
the disabled case with the 404 an uninstalled app already gets, so the
static tier discloses no more than the missing app does.
Verified with a live host: a disabled echo-app fixture answers 404 where
an enabled and a default-enabled one answer 200; the package test suite
stays green.
Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>1 parent 6ba02e0 commit 5cb84bc
2 files changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
121 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
122 | 133 | | |
123 | 134 | | |
124 | 135 | | |
| |||
202 | 213 | | |
203 | 214 | | |
204 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
205 | 225 | | |
206 | 226 | | |
207 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
0 commit comments