whydinkov
05/01/2023, 9:40 PMbackend
- on server A
frontend
- on server B, trying to contact the backend on server A
frontend-local
- locally, trying to contact the backend on server A
I guess, I can have multiple backends, to cater to the 2 types
like backend
and backend-local
, where backend is setup towards frontend (on server B)
and backend-local where our local IP address is set for CORS and website name localhost with a port
and tweak a bit the devops ot deploy the same code base to backend and backend-local, and both backends can connect to same `core`and databases.
however this sounds a bit tidious, as I am new to this library, is there a way to support this functionality (both frontends) from a single backendrp_st
05/02/2023, 5:34 AMrp_st
05/02/2023, 5:35 AMnone
in session.init.
When the local frontend queries the backend, it will mostly work other than email verification links which will point to the websiteDomain instead of the local site. But this can be changed if you override the sendEmail function to change the domain on the url based on the request origin.whydinkov
05/02/2023, 5:43 AM