Skip to content

Commit 5852256

Browse files
committed
Step 3 - Ensure deployUrl accuracy for dependency loading
1 parent dd31a44 commit 5852256

File tree

1 file changed

+6
-0
lines changed
  • libs/nx-angular-mf/src/builders/build

1 file changed

+6
-0
lines changed

libs/nx-angular-mf/src/builders/build/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ export async function* runBuilder(
1515

1616
const optionsMfe = await prepareConfig(defaultOptionsMfe, options, context);
1717

18+
if (!optionsMfe.deployUrl) {
19+
throw new Error(
20+
'Deploy url is not defined. It is necessary for MFE. You should "deployUrl" options or set "deployUrlEnvName" in your config'
21+
);
22+
}
23+
1824
const mapShareObject = getMapName(
1925
optionsMfe.shared,
2026
optionsMfe.sharedMappings

0 commit comments

Comments
 (0)