DavidAJohn / FotoStorio

Blazor WebAssembly application for a fictional photography store, with Stripe Elements payment integration and styling with Tailwind CSS.
MIT License
5 stars 1 forks source link

Hard-coded image references should be dynamic #32

Open DavidAJohn opened 4 months ago

DavidAJohn commented 4 months ago

While updating the application to remove references to images stored on ImgBB.com, it became 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.

The immediate problem of hard-coded refs to imgbb.com has been dealt with now at least.

DavidAJohn commented 3 months ago

The only explicit reference to the Azure storage container being used to host the images is in the data seeding JSON file.