import GarfishInstance , { interfaces } from 'garfish' ; import './monitoring' ; declare const Cypress ; ( window as any ) . __GARFISH_PARENT__ = true ; let defaultConfig = { basename : '/garfish_master' , domGetter : ( ) => { return document . querySelector ( '#submoduleByRouter' ) ; } , apps : [ { name : 'vue' , activeWhen : '/vue' , cache : false , entry : 'http://localhost:2666' , } , { name : 'vue2' , cache : false , activeWhen : '/vue2' , entry : 'http://localhost:2777' , } , { name : 'vite-vue3' , cache : true , activeWhen : '/vite' , entry : 'http://localhost:2888/' , } , ] , autoRefreshApp : false , disablePreloadApp : true , protectVariable : [ 'MonitoringInstance' , 'Garfish' , '__GARFISH_GLOBAL_APP_LIFECYCLE__' , ] , insulationVariable : [ 'setImmediate' ] , sandbox : { open : true , } , customLoader ( ) { } , } ; GarfishInstance . registerApp ( { name : 'react' , activeWhen : '/react' , cache : false , entry : 'http://localhost:2444' , props : { appName : 'react' , } , } ) ; if ( typeof Cypress !== 'undefined' ) { defaultConfig = { ... defaultConfig , ... Cypress . env ( ) . garfishRunConfig , } ; } export const Config = defaultConfig ;