oof2win2
oof2win2
Explore posts from servers
CDCloudflare Developers
Created by oof2win2 on 9/30/2024 in #general-help
Migrating to a new account
Hey there. I want to migrate my current Cloudflare projects (domains, workers, D1, Stream) all to a new account. Is this possible without too much downtime and data loss?
1 replies
CDCloudflare Developers
Created by oof2win2 on 4/14/2024 in #workers-help
how to setup rpc/entrypoints with workers for API access?
hi. so i have an api that is structured as below, and i was wondering how i would represent it within rpc or entrypoints. do i create a base entrypoint and make the rest RPC targets that can be used with a getter (option 1, doesn't seem too difficult), or can i create it with option 2 using classes on the base api class?
GET /reports
GET /reports/:id
POST /reports
GET /communities
GET /communities/:id
GET /reports
GET /reports/:id
POST /reports
GET /communities
GET /communities/:id
// option 1
const reportsRoute = await env.BACKEND.getReports()
const reports = await reportsRoute.getReport("id")

// option 2
const reports = await env.BACKEND.reports.getReport("id")
// option 1
const reportsRoute = await env.BACKEND.getReports()
const reports = await reportsRoute.getReport("id")

// option 2
const reports = await env.BACKEND.reports.getReport("id")
11 replies
CDCloudflare Developers
Created by oof2win2 on 1/3/2024 in #general-help
image and video storage
so i want to create a image and video backup solution and host it somehow on cloudflare. is that realistic? i would quickly run out of R2 storage and would get to the paid tier. since i won't be reading the images very often (if at all), is there something else cloudflare offers that would suit me better?
3 replies