also looking at this
fix(dashboard): stop remote commands importing an absent config module
#59
5 files
+114
-0
| @@ -0,0 +1,21 @@ | ||
| 1 | import { Action } from '@stacksjs/actions' | |
| 2 | import { response } from '@stacksjs/router' | |
| 3 | ||
| 4 | /** | |
| 5 | * AnalyticsHQ does not configure dashboard-managed SSH hosts or commands. | |
| 6 | * | |
| 7 | * Keeping this application override prevents the framework default from | |
| 8 | * importing the optional `~/config/remote` module while still giving the | |
| 9 | * dashboard a valid, empty registry. | |
| 10 | */ | |
| 11 | export default new Action({ | |
| 12 | name: 'RemoteCommandIndexAction', | |
| 13 | description: 'List the remote commands configured for AnalyticsHQ', | |
| 14 | method: 'GET', | |
| 15 | async handle() { | |
| 16 | return response.json({ | |
| 17 | hosts: [], | |
| 18 | commands: [], | |
| 19 | }) | |
| 20 | }, | |
| 21 | }) | |