You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While updating the application to remove references to images stored on ImgBB.com, it's become abundantly clear that simply replacing one set of hard-coded values for image references with another set is not an ideal solution.
I think it's safe to assume that Azure is going to be more reliable than imgbb.com, but this is more about providing flexibility regarding the hosting of static file assets.
I'd like to have a base URI stored in the config so that wherever possible we're just storing the image name and adding it as a suffix to the base URI. That would make it possible to host the images somewhere other than Azure, and to switch hosts more easily if necessary.
There are implications for a number of different parts of the application, but they can be dealt with gradually rather than all in one go.
The immediate problem of hard-coded refs to imgbb.com has been dealt with now at least.
The text was updated successfully, but these errors were encountered:
Hard-coded references to the Azure storage container being used to store the images displayed throughout the application have now mostly been removed, with the following exceptions:
The ApplicationStatus project has a reference in its custom.css stylesheet. This may have to remain in place.
The products.json file used for data seeding in the Products API project.
There are obviously references contained in the Blazor appsettings files and the live .env file would need to contain the same reference. This is by design.
Ultimately, the goal is to make it possible to just change the value in the .env file and have that override the values in each containerised application. The docker-compose file has also been configured to support this.
While updating the application to remove references to images stored on ImgBB.com, it's become abundantly clear that simply replacing one set of hard-coded values for image references with another set is not an ideal solution.
I think it's safe to assume that Azure is going to be more reliable than imgbb.com, but this is more about providing flexibility regarding the hosting of static file assets.
I'd like to have a base URI stored in the config so that wherever possible we're just storing the image name and adding it as a suffix to the base URI. That would make it possible to host the images somewhere other than Azure, and to switch hosts more easily if necessary.
There are implications for a number of different parts of the application, but they can be dealt with gradually rather than all in one go.
The immediate problem of hard-coded refs to imgbb.com has been dealt with now at least.
The text was updated successfully, but these errors were encountered: