Řambo
Řambo
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Řambo on 8/2/2023 in #questions
Improve performance - Avoid Re-renders when changing range input used as a volume slider
How would i go about improving this. Right now when you move the slider it'll re-renders all the Quotes Im having a hard time wrapping my head around this. My thinking is I would need to manage the sound with useSound somewhere else? or do some type of composition with the components? If i do the former, then you won't be able to play multiple sounds simultaneously? Idk Any advice would be appreciated thanks.
9 replies
CDCloudflare Developers
Created by Řambo on 7/18/2023 in #general-help
Cloudflare R2 public bucket urls with %27 not found
Urls with %27 in the file name are not being found
29 replies
CDCloudflare Developers
Created by Řambo on 7/7/2023 in #general-help
Bucket size increasing randomly
Like 2 days ago my bucket size was around 1.45GB and today i check and its 1.55GB. Im not doing any uploads or anything, its increasing randomly. i checked earlier and it was like 1.52GB then a couple hours later i refresh and its 1.53GB etc.. anyone have any idea whats happening?
16 replies
CDCloudflare Developers
Created by Řambo on 7/5/2023 in #general-help
Bucket url
I currently have public access through custom domain that is able to access my files. For example if someone goes to r2.leaguesounds.com/test.ogg it'll automatically download it. How can i have a url like this for use in an app in an audio src for example, but have it be private so no one can go to that link and download it? Or any recommendations?
6 replies
CDCloudflare Developers
Created by Řambo on 7/5/2023 in #general-help
Adding custom domain in public buckets DNS record issue
Im trying to add a custom domain when i do, i get this error DNS record for this domain already exists on zone. (Code: 10056) How can i fix it?
29 replies
CDCloudflare Developers
Created by Řambo on 7/4/2023 in #general-help
Use vercel domain in R2 custom domain
Im using vercel to host my project and it automatically generates a domain repo-name.vercel.app. Can this domain be used as a custom domain in R2 for public access
7 replies
TTCTheo's Typesafe Cult
Created by Řambo on 2/9/2023 in #questions
Vercel deployment - React Router
Every time i deploy with vercel i have to make a vercel.json file and add this
{
"rewrites": [{ "source": "/(.*)", "destination": "/" }]
}
{
"rewrites": [{ "source": "/(.*)", "destination": "/" }]
}
so that routes dont mess up. Are there any alternative to this? or do i just have to do this everytime
10 replies
TTCTheo's Typesafe Cult
Created by Řambo on 12/14/2022 in #questions
How to deal with constantly updating data
So i have an app that fetches some data from some endpoint. Some of this data will change every 2 weeks, not all of it. One way to get the updated date would be to restart the app. Would i need to setup a cron job? setInterval? Im wondering what would be a good way to go about this. If it helps, this is relating to the game league of legends, which has patches every 2 weeks.
7 replies