https://discord.cloudflare.com logo
Join Discord
Channels
general-help
analytics-engine-beta
browser-rendering-api-beta
cloudflare-for-saas
cloudflare-go
coding-help
constellation
d1-open-alpha
do-alarms
durable-objects
email-routing
frameworks
functions
general-discussions
general-faq
images
⚡instant-logs
👋intros
kv
logs-engine
love
magic-network-monitoring
miniflare
pages-discussions
pages-feature-suggestions
pages-help
pages-plugins
pubsub-beta
queues-beta
r2
radar
service-bindings
starboard
stream
terraform-provider-cloudflare
🤖turnstile-beta
web3
web-research
welcome-and-rules
what-i-built
wildebeest
workerd
workers-discussions
workers-feature-suggestions
workers-for-platforms
workers-help
workers-libraries
🦀workers-rs
wrangler
zaraz
Powered by
# general-discussions
  • l

    Luix2

    04/06/2023, 1:43 AM
    sorri
  • l

    Luix2

    04/06/2023, 1:50 AM
    Thank you all the helpers on this server
  • l

    Luix2

    04/06/2023, 1:50 AM
    you guys are all amazing and I appriciate everything you guys do here
  • l

    Luix2

    04/06/2023, 1:51 AM
    https://tenor.com/view/my-hero-academia-boku-no-hero-academia-anime-mha-bnha-gif-17532278
  • m

    marais

    04/06/2023, 2:05 AM
    with cloudflare for saas — am i right in understanding that if i have a worker route bound to
    <zone>/*
    and point a third party domain (via cf for saas) that that third party should also now see traffic from that worker route??
  • m

    marais

    04/06/2023, 2:06 AM
    all i see is https://ads.aha.to/ timeout 😅
  • c

    Chaika

    04/06/2023, 2:07 AM
    I believe the route needs to be a full wildcard,
    */*
    for the path
  • c

    Chaika

    04/06/2023, 2:09 AM
    https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/domain-support/worker-as-origin/
  • m

    marais

    04/06/2023, 2:10 AM
    and what about pages? is that supported?
  • m

    marais

    04/06/2023, 2:10 AM
    and r2
  • m

    marais

    04/06/2023, 2:10 AM
    my origin is the supercloud 😅
  • c

    Chaika

    04/06/2023, 2:12 AM
    Pretty sure Pages is a no (Pages for SaaS maybe one day), and not sure About R2 Custom Domains (although I would assume no), although you could just bind the bucket to your worker and serve it that way
  • m

    marais

    04/06/2023, 2:13 AM
    what would my solution be?
  • m

    marais

    04/06/2023, 2:14 AM
    i dont want to run a worker just to serve an asset, that is what is nice about r2 custom domains
  • c

    Chaika

    04/06/2023, 2:15 AM
    Try it first? R2 Custom Domains are a bit special afaik, I don't think they would work, but I've never tried it myself nor can I find any result about it in here
  • m

    marais

    04/06/2023, 2:17 AM
    so my r2 is on a subdomain, guessing id need to have a customer wildcard cname thiers?
  • m

    marais

    04/06/2023, 2:18 AM
    Copy code
    static.zone.com -> r2 ⚠️
    zone.com/api/ -> workers ✅ (with */api/*)
    zone.com/ -> pages 🚨
  • d

    dave

    04/06/2023, 2:20 AM
    what's wrong with running a Worker to just serve an asset? I have a Worker for stuff even like SVG logos lol
  • c

    Chaika

    04/06/2023, 2:21 AM
    I was thinking customer.com -> fallback.you.com -> r2
  • m

    marais

    04/06/2023, 2:21 AM
    i dont pay for for the r2 request
  • c

    Chaika

    04/06/2023, 2:21 AM
    You still pay for requests
  • m

    marais

    04/06/2023, 2:21 AM
    😮
  • m

    marais

    04/06/2023, 2:21 AM
    is it cheaper to run the request through workers then?
  • c

    Chaika

    04/06/2023, 2:21 AM
    Cheaper for Custom Domains, since a cache hit doesn't cost you anything
  • m

    marais

    04/06/2023, 2:21 AM
    i only make money once every 1000 requests, so cost per request should be cheap
  • c

    Chaika

    04/06/2023, 2:21 AM
    err, cheaper for custom domains
  • d

    dave

    04/06/2023, 2:22 AM
    we currently make ~$0 every 1000 requests and our Cloudflare Worker bills are basically a rounding error
  • c

    Chaika

    04/06/2023, 2:22 AM
    You can use the Cache API with Workers, but your worker would still be invocated each time, so it's Custom Domain = Price of uncached requests Workers w/ R2 = Price of Worker Invocation + cost of r2 request (if not cached & using cache)
  • c

    Chaika

    04/06/2023, 2:23 AM
    Workers are pretty cheap though
  • m

    marais

    04/06/2023, 2:23 AM
    so its more than okay to use a worker in front of a r2 bucket, even with caches.default?
1...395639573958...4267Latest