public media folder

I am making a job which generates images. After generating, I want them to be publicly accessible. Where is a good folder in project to place them so it will work? I'm planning to deploy on Fly
4 Replies
miho
miho17mo ago
GitHub
dailyaicomics/r2.ts at main · infomiho/dailyaicomics
Daily AI Comics using Wasp, ChatGPT and Stable Diffusion - dailyaicomics/r2.ts at main · infomiho/dailyaicomics
miho
miho17mo ago
R2 is like Amazon's S3
shayne
shayne17mo ago
yeah unfortunately we don't have a convention or support for that in Wasp yet, so a 3rd party for now is required. but we do plan to add support for that for sure also the good thing about @miho's suggestion is persistence. a lot of times the storage for the cloud provider running your server is ephemeral, so even if you did save it there when a new container was swapped in they would be gone (unless you enabled some persistent volume and mapped it, which is provider specific)
fossfighter
fossfighter17mo ago
Oh ok, I considered using R2 but then thought why not use Fly's volumes for persistent storage since we are on "server-full" framework compared to Next. Well, since it's not supported yet I'll use R2, anyways wanted to give it a try too so this hackathon is a good opportunity
Want results from more Discord servers?
Add your server