From c64e52640e5b93bedc15b995ac44941cd8e00166 Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Tue, 24 Oct 2023 16:03:03 -0300 Subject: [PATCH] remove remoteEntry --- .../src/main/webapp/app/core/microfrontend/index.ts.ejs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generators/angular/templates/src/main/webapp/app/core/microfrontend/index.ts.ejs b/generators/angular/templates/src/main/webapp/app/core/microfrontend/index.ts.ejs index ecfdad4cd82f..df92c2e7168c 100644 --- a/generators/angular/templates/src/main/webapp/app/core/microfrontend/index.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/core/microfrontend/index.ts.ejs @@ -24,7 +24,7 @@ import type NavbarItem from 'app/layouts/navbar/navbar-item.model'; export const loadNavbarItems = async (service: string): Promise => importRemote<{ EntityNavbarItems: NavbarItem[] }>({ esm: true, - url: `${window.location.origin}/services/${service}/remoteEntry.js`, + url: `${window.location.origin}/services/${service}`, scope: 'default', module: 'entity-navbar-items', }).then(({ EntityNavbarItems }) => EntityNavbarItems); @@ -33,7 +33,7 @@ export const loadNavbarItems = async (service: string): Promise => export const loadTranslationModule = async (service: string): Promise> => importRemote<{ LazyTranslationModule: Type }>({ esm: true, - url: `${window.location.origin}/services/${service}/remoteEntry.js`, + url: `${window.location.origin}/services/${service}`, scope: 'default', module: 'translation-module', }).then(({ LazyTranslationModule }) => LazyTranslationModule); @@ -42,7 +42,7 @@ export const loadTranslationModule = async (service: string): Promise> export const loadEntityModule = async (service: string): Promise> => importRemote<{ EntityRoutingModule: Type }>({ esm: true, - url: `${window.location.origin}/services/${service}/remoteEntry.js`, + url: `${window.location.origin}/services/${service}`, scope: 'default', module: 'entity-routing', }).then(({ EntityRoutingModule }) => EntityRoutingModule);