After the user logs in, state.auth.currentInstance changes from <hostname>:<PORT> to <hostname> [1]. Setting VITE__TEST_MODE=1 will override this behaviour with a couple of small changes and no side-effects. Using this var name because similar overrides might be needed elsewhere in the future and this should cover most (or all) of them.
After the user logs in,
state.auth.currentInstance
changes from<hostname>:<PORT>
to<hostname>
[1]. SettingVITE__TEST_MODE=1
will override this behaviour with a couple of small changes and no side-effects. Using this var name because similar overrides might be needed elsewhere in the future and this should cover most (or all) of them.Also updated the build step in e2e action.
[1]: Lemmy sets the
iss
claim to hostname when creating JWTs.authSlice.addJwt
updatesstate.auth.currentInstance
with the value of this claim.