File tree Expand file tree Collapse file tree 5 files changed +11
-7
lines changed
microfrontends/SignDocuments Expand file tree Collapse file tree 5 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 41
41
},
42
42
"scripts" : {
43
43
"start" : " mf-cra start" ,
44
- "build" : " npm run micro && CI=false && mf-cra build" ,
44
+ "build" : " rm -rf public/mfbuild/* && npm run micro && CI=false && mf-cra build" ,
45
45
"micro" : " cd ../../microfrontends/SignDocuments && npm install && npm run build" ,
46
46
"test" : " react-scripts test" ,
47
47
"eject" : " react-scripts eject" ,
84
84
"pretty-quick" : " ^3.1.3" ,
85
85
"tailwindcss" : " ^3.3.3"
86
86
}
87
- }
87
+ }
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ const MicroappModal = () => {
15
15
// console.log("value ", key + ":" + value);
16
16
17
17
if ( key === "remoteUrl" ) {
18
- obj = { ...obj , [ key ] : atob ( value ) } ;
18
+ const url = window . location . origin + "/mfbuild/remoteEntry.js" ;
19
+ // console.log("atob(value) ", atob(value))
20
+ obj = { ...obj , [ key ] : url } ;
19
21
} else {
20
22
if ( key === "moduleToLoad" ) {
21
23
obj = { ...obj , [ key ] : "./" + value } ;
@@ -45,9 +47,9 @@ const MicroappModal = () => {
45
47
>
46
48
Back
47
49
</ button >
48
- { localStorage . getItem ( ' domain' ) && (
50
+ { localStorage . getItem ( " domain" ) && (
49
51
< p className = "flex-1 w-full text-sm md:text-base text-black text-center" >
50
- { localStorage . getItem ( ' domain' ) === "contracts" ? "Document" : "" }
52
+ { localStorage . getItem ( " domain" ) === "contracts" ? "Document" : "" }
51
53
</ p >
52
54
) }
53
55
</ div >
Original file line number Diff line number Diff line change @@ -65,7 +65,9 @@ export default function RemoteAppContainer() {
65
65
// console.log("value ", key + ":" + value);
66
66
67
67
if ( key === "remoteUrl" ) {
68
- obj = { ...obj , [ key ] : atob ( value ) } ;
68
+ const url = window . location . origin + "/mfbuild/remoteEntry.js" ;
69
+ // console.log("atob(value) ", atob(value))
70
+ obj = { ...obj , [ key ] : url } ;
69
71
} else {
70
72
if ( key === "moduleToLoad" ) {
71
73
obj = { ...obj , [ key ] : "./" + value } ;
Original file line number Diff line number Diff line change 35
35
},
36
36
"scripts" : {
37
37
"start" : " mf-cra start" ,
38
- "build" : " CI=false && mf-cra build && mv build ../../apps/OpenSign/public/mfbuild" ,
38
+ "build" : " CI=false && mf-cra build && mv build/* ../../apps/OpenSign/public/mfbuild" ,
39
39
"test" : " react-scripts test" ,
40
40
"eject" : " react-scripts eject"
41
41
},
You can’t perform that action at this time.
0 commit comments