[Bug] How to modify the domain name of uploaded images
Bug Description
Self-hosted appflowy I uploaded the image normally When I changed the domain name used by my self-hosted appflowy, how can I change the domain name of the original link for uploading the image?
How to Reproduce
Use a.com to upload images Change the domain name of the self-hosted appflowy to b.com How to make the uploaded images also use b.com
Expected Behavior
I can configure the domain name for uploading pictures
Operating System
mac
AppFlowy Version(s)
0.6.9
Screenshots
No response
Additional Context
No response
This seems to be due to using an environment variable inside flowy-server crate, which means the base_url is always the same unless the application is built by the self-hoster with preset environment variables.
We should of course set the base url according to the inputted self-host url, we can instead default it to the environment variable if none provided. (eg. in a small locally cached sqlite table containing the configuration).
CC @appflowy
The publish function of self-hosted appflowy also has a similar domain name problem. The domain name displayed after publish is appflowy.com