import type { Context } from '../../models/context' ; import type { CommandResult } from '../../models/command' ; import { app } from '../index' ; export default async ( context , parameters ) : Promise < CommandResult | any > => { const { staticServer } = await app . run ( 'start' , { ... parameters , strictErrorHandle : false , } ) ; await new Promise ( ( resolve ) => { staticServer . on ( 'close' , resolve ) ; } ) ; return Promise . resolve ( { status : 'ok' , } ) ; } ;