ReviewOS

also looking at this

stacks/analyticshq

fix(dashboard): stop remote commands importing an absent config module

#59
Merged glennmichael123 wants to merge fix/analyticshq-remote-and-subscribers into main
5 files +114 -0
app/Actions/Dashboard/Remote/RemoteCommandIndexAction.tsadded+21-0
Changes to app/Actions/Dashboard/Remote/RemoteCommandIndexAction.ts
@@ -0,0 +1,21 @@
1import { Action } from '@stacksjs/actions'
2import { 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 */
11export 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})