I read the tutor-mfe documentation you mentioned, and I did the following:
Issued tutor config save --set MFE_AUTHN_MFE_APP=null
and confirmed the new authn UI goes away, and it reverts to the old form (but I don’t know what else I’m losing by doing that)
Forked frontend-app-authn and made a branch “test_branch”. Edited src/base-component/LargeLayout.jsx
to change “skewX(171.6)” to “skewX(180)” just to see if I could see the diagonal line turn vertical. Checked in the branch and pushed to the server.
Added the following at the bottom of my /home/ubuntu/.local/share/tutor/config.yml
:
MFE_AUTHN_MFE_APP : {
"name": "authn",
"repository": "https://github.com/username/frontend-app-authn",
"port": 2001,
"version": "origin/test_branch", #This was probably wrong?
}
tutor images build mfe
(That succeeded)
tutor local launch
I can’t remember whether that succeeded or not. I think it did, and then I didn’t see any change, so I went looking for whether I saw the build or launch pulling from my repository.
I ultimately got myself into a weird state where I did see it using my repo, but it was continuously failing with the command git clone https://github.com/username/frontend-app-authn.git --branch origin/test_branch --depth 1 .
with fatal: Remote branch origin/test_branch not found in upstream origin
.
This is the point at which I knew I should have put just test_branch
instead of origin/test_branch
. But now I’m in a state where even if I change it to "version": "origin/test_branch"
in /home/ubuntu/.local/share/tutor/config.yml
it just kept erroring out until I removed that MFE_AUTHN_MFE_APP again with tutor config save --set MFE_AUTHN_MFE_APP=null
. And now when I try to put it back, it doesn’t seem to ever be picking up the new branch path when I do tutor images build mfe
, as it just thinks everything’s cached and there’s no need for a rebuild.
So what did I do wrong (besides getting the branch name wrong), and how can I correct it?
Aside: I know I’m probably supposed to put the thing
config = {
"defaults": {
"MYMFE_MFE_APP": {
"name": "mymfe",
"repository": "https://github.com/myorg/mymfe",
"port": 2001,
"version": "me/my-custom-branch", # optional
}
}
}
From the tutor-mfe documentation into a plugin or something, instead of editing config.yml. But as per usual, I have no idea how to translate that into a tutor plugin, if that’s what I’m expected to do. And since it seemed to cause some sort of reaction (even if it was an error) by modifying config.yml directly, and because that’s what you said to edit, I thought that would be ok.