also looking at this
fix(dashboard): stop remote commands importing an absent config module
#59
5 files
+114
-0
| @@ -0,0 +1,16 @@ | ||
| 1 | import { Action } from '@stacksjs/actions' | |
| 2 | import { response } from '@stacksjs/router' | |
| 3 | ||
| 4 | /** | |
| 5 | * Fail closed because AnalyticsHQ has no remote-command registry or gate. | |
| 6 | */ | |
| 7 | export default new Action({ | |
| 8 | name: 'RemoteCommandRunAction', | |
| 9 | description: 'Reject remote commands because AnalyticsHQ does not configure them', | |
| 10 | method: 'POST', | |
| 11 | async handle() { | |
| 12 | return response.json({ | |
| 13 | message: 'Remote commands are not configured for AnalyticsHQ.', | |
| 14 | }, 403) | |
| 15 | }, | |
| 16 | }) | |