File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
spring-boot-admin-server-ui/src/main/frontend Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import {
3131 useApplicationStore ,
3232} from './composables/useApplicationStore.js' ;
3333import i18n from './i18n' ;
34- import { worker } from './mocks/browser' ;
3534import Notifications from './notifications.js' ;
3635import SbaModalPlugin from './plugins/modal' ;
3736import sbaConfig from './sba-config' ;
@@ -44,6 +43,9 @@ const applicationStore = createApplicationStore();
4443const viewRegistry = createViewRegistry ( ) ;
4544
4645if ( process . env . NODE_ENV === 'development' ) {
46+ const { worker } = await import ( './mocks/browser' ) ;
47+ await worker . start ( ) ;
48+
4749 globalThis . __VUE_OPTIONS_API__ = true ;
4850 globalThis . __VUE_PROD_DEVTOOLS__ = true ;
4951}
@@ -75,10 +77,6 @@ sbaConfig.extensions.css.forEach((extension) => {
7577
7678moment . locale ( navigator . language . split ( '-' ) [ 0 ] ) ;
7779
78- if ( process . env . NODE_ENV === 'development' ) {
79- await worker . start ( ) ;
80- }
81-
8280const installables = [ Notifications , ...views ] ;
8381installables . forEach ( ( installable ) => {
8482 installable . install ( {
You can’t perform that action at this time.
0 commit comments