To improve the serving of files from Bunny's storage, we'll make use of the CDN from the same provider.
Tasks:
[ ] Add BUNNY_CACHE_URL as an environment variable.
[ ] Update database schema. Tournament table should have logoMetadata and bannerMetadata removed since those will likely no longer be necessary, and instead replace them with hasLogo and hasBanner, both booleans, not null with default set to false.
[ ] For the API routes handling the uploads for tournament logos and banners, PUT and DELETE should purge the cache of the requested image after the (after upload on PUT and after delete on DELETE).
To improve the serving of files from Bunny's storage, we'll make use of the CDN from the same provider.
Tasks:
BUNNY_CACHE_URL
as an environment variable.Tournament
table should havelogoMetadata
andbannerMetadata
removed since those will likely no longer be necessary, and instead replace them withhasLogo
andhasBanner
, both booleans, not null with default set tofalse
.