https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • s

    switz

    04/26/2023, 6:40 PM
    yeah this would be really nice
  • a

    amorfati

    04/26/2023, 10:01 PM
    Is it possible to use worker runtime in github actions without wrangler --experimental-json-config?
  • z

    zizi

    04/27/2023, 2:45 AM
    I think I can get service binding efficient pricing benefit only if I use worker unbundled model? https://blog.cloudflare.com/service-bindings-ga/
  • o

    Ottomated

    04/27/2023, 5:52 AM
    Copy code
    ▲ [WARNING] We recommend keeping your script less than 1MiB (1024 KiB) after gzip. Exceeding past this can affect cold start time
    is this true even on the paid plan? I thought it kept workers in every edge location permanently
  • h

    HardAtWork

    04/27/2023, 6:23 AM
    You are sort of right. Scripts on the paid plan are stored in Quicksilver, Cloudflare’s Edge Database. The issue is that Quicksilver only supports a maximum payload size of 1 MB, so above that, scripts are stored offsite, like free tier scripts
  • a

    amorfati

    04/27/2023, 6:50 AM
    Reasonable to expect https imports support at some point?
  • s

    Skye

    04/27/2023, 6:57 AM
    SSL happens before you even reach workers, I'd be surprised if it did ever happen
  • g

    g000m

    04/27/2023, 9:00 AM
    Is this not how staging routes work? [env.staging] routes = [ { zone_name = "ehc.workers.dev", pattern = "https://subroute-proxy-staging.ehc.workers.dev/route/" }, { zone_name = "ehc.workers.dev", pattern = "https://subroute-proxy-staging.ehc.workers.dev/route/*" } ] I get this error workers.api.error.route_not_allowed_on_subdomain [code: 10038] workers.api.error.route_not_allowed_on_subdomain [code: 10038]
  • g

    g000m

    04/27/2023, 9:04 AM
    I'm trying to avoid needing to make a staging subdomain on the prod zone
  • h

    HardAtWork

    04/27/2023, 9:12 AM
    I don't think you can add new zones on
    workers.dev
  • g

    g000m

    04/27/2023, 9:17 AM
    mis-pasted that. { zone_name = "ehc.workers.dev", pattern = "https://subroute-proxy-staging.ehc.workers.dev/route/" },
  • g

    g000m

    04/27/2023, 9:17 AM
    not trying to change the zone, just create staging routes on it
  • h

    HardAtWork

    04/27/2023, 10:11 AM
    Yeah, I don't think you can configure anything on the
    workers.dev
    domain, other than your personal subdomain(
    ech.workers.dev
    ), and the project name.
  • w

    Walshy | Pages

    04/27/2023, 11:23 AM
    Yeah we make the workers.dev routes ^ You cannot configure that, use a custom domain to do that
  • b

    betim

    04/27/2023, 12:21 PM
    Hello all, Cross-posting from #1052656806058528849, hoping to get guidance. Looking for clarification on the Workers on Custom Domains scenario documented in the second paragraph of https://developers.cloudflare.com/workers/platform/triggers/custom-domains/#fetch. From the phrasing, I'm taking it to mean that a subrequest fetch to https://api.example.com/ from worker A hosted on app.example.com (set up as a Cloudflare Custom domain) to worker B hosted on api.example.com (also set up as a Cloudflare Custom domain) should work. Is this correct? From my tests, a fetch from worker A to api.example.com returns an HTTP 522 code. Other possibly pertinent details: - I have other services running on example.com as well as it's other subdomains, all fronted by Cloudflare DNS. - Parent domain name itself was purchased elsewhere but its DNS is hosted on Cloudflare. Thoughts on above?
  • g

    g000m

    04/27/2023, 12:30 PM
    Can't you set routes/triggers on the *.workers.dev domain?
  • h

    HardAtWork

    04/27/2023, 12:31 PM
    You can enable/disable the
    *.*.workers.dev
    domain, but you can't set routes explicitly
  • g

    g000m

    04/27/2023, 12:33 PM
    ok, thanks
  • o

    Ottomated

    04/27/2023, 1:33 PM
    Oh interesting. How does that work with multi-file workers? Is it stored as gzip and decompressed on every request, or is each file stored separately?
  • h

    HardAtWork

    04/27/2023, 1:52 PM
    wrangler
    bundles all the files(minus WebAssembly) into a single file on build
  • o

    Ottomated

    04/27/2023, 1:53 PM
    Including files under the
    rules
    section?
  • h

    HardAtWork

    04/27/2023, 1:54 PM
    Yup. It uses the rules to determine how to inline them
  • h

    HardAtWork

    04/27/2023, 1:54 PM
    Text files are escaped and then inserted as strings
  • h

    HardAtWork

    04/27/2023, 1:54 PM
    As an example
  • o

    Ottomated

    04/27/2023, 1:55 PM
    That's weird
  • o

    Ottomated

    04/27/2023, 1:55 PM
    Why does it disable quick edit in the dashboard?
  • o

    Ottomated

    04/27/2023, 1:55 PM
    And how do you inline binary?
  • h

    HardAtWork

    04/27/2023, 1:56 PM
    https://esbuild.github.io/content-types/#binary
  • h

    HardAtWork

    04/27/2023, 1:56 PM
    QuickEdit is pretty old, so a lot of stuff breaks when you use it.
  • o

    Ottomated

    04/27/2023, 2:00 PM
    so this is just a lie https://developers.cloudflare.com/workers/wrangler/bundling/#files-which-will-not-be-bundled
1...241924202421...2509Latest