Support running on custom url
E.g. https://mydomain.com/tolgee
Wow, I thought I made something wrong.
I try to host tolgee under some dir (not root) and cannot make it work.
It always renders src and stylesheet with the root path, resulting in something like https://mydomain.com/assets/index-y_piHsrM.js instead of https://mydomain.com/tolgee/assets/index-y_piHsrM.js
Need baseUrl setting. Frontend url does not help.
I wonder, what do we actually need to do to make this working. 🤔 The backend is probably fine, huh?
Based on my experience the problem is usually in the frontend and how it handles the access to static files and how it makes backend requests.
With Angular frontend, you usually have to set "base-href": "/myapp/" if you want the app to be served on /myapp
EDIT: Forgot that you use React. This solution should work for React - https://stackoverflow.com/questions/49429906/how-should-i-configure-create-react-app-to-serve-app-from-subdirectory
I guess FE will be much more pain, backend will be more about just adding the configuration field.
So it is not supported? I tought setting TOLGEE_FRONT_END_URL could fix this issue.
No, not currently, TOLGEE_FRONTE_END_URL is just for redirects