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

    DemosJarco

    03/11/2023, 12:26 AM
    Do I put
    experimentalLocal
    along or instead of
    local
    ?
  • s

    Skye

    03/11/2023, 12:27 AM
    Don't put anything in
    local
    , just leave it undefined. Then I think the other option goes under
    experimental: { experimentalLocal: true }
  • d

    DemosJarco

    03/11/2023, 12:28 AM
    sorry, I meant
    forceLocal
  • s

    Skye

    03/11/2023, 12:29 AM
    Oh, you can ignore force local, that's a thing made for
    pages dev
    so that people can't accidentally enable remote mode, like you can with regular wrangler dev (it's not supported)
  • d

    DemosJarco

    03/11/2023, 12:30 AM
    oh I didn't know that
  • s

    Skye

    03/11/2023, 12:30 AM
    Most of the options under
    experimental
    aren't meant to be used by the majority of people
  • d

    DemosJarco

    03/11/2023, 12:42 AM
    Made issue #2892
  • d

    DemosJarco

    03/11/2023, 12:57 AM
    @Skye When you do
    unstable_dev()
    does it read the
    wrangler.toml
    including its
    VARS
    and bindings?
  • d

    DemosJarco

    03/11/2023, 12:58 AM
    Also what does
    testMode
    do?
  • s

    Skye

    03/11/2023, 12:58 AM
    You can pass it a config file flag, not sure if it picks it up by default
  • s

    Skye

    03/11/2023, 12:59 AM
    I see this in the source as the main explanation for it
  • s

    Skye

    03/11/2023, 1:00 AM
    Again, lots of the flags in the experimental property don't need to be touched in 99% of cases
  • s

    Skye

    03/11/2023, 1:01 AM
    There's even a comment under testMode in the interface saying "this one shouldn't be used" 😅
  • d

    DemosJarco

    03/11/2023, 1:13 AM
    looks like it does pick up
    wrangler.toml
    at root
  • z

    zapalona_swieczka

    03/11/2023, 2:03 AM
    I wonder regarding microfrontends concept - https://blog.cloudflare.com/better-micro-frontends/. In that case, pricing wise, 1 customer request would be counted as 3? (header + content + footer)?
  • d

    DemosJarco

    03/11/2023, 2:04 AM
    So it does pickup
    wrangler.toml
    but not
    .dev.vars
  • k

    kian

    03/11/2023, 2:09 AM
    Yes
  • d

    DemosJarco

    03/11/2023, 3:19 AM
    When creating
    unstable_dev
    , on windows it's passing through the environment variables (from the script running
    unstable_dev
    to the actual worker spawned by
    unstable_dev
    ). But on linux (or atleast
    ubuntu-latest
    on gha) it's not. Is this a bug or how do I pass through secrets to the worker?
  • z

    zapalona_swieczka

    03/11/2023, 8:49 AM
    uh. thanks for confirming
  • a

    Advany

    03/11/2023, 9:45 AM
    I see that https://www.mailchannels.com/ is free if you use cloudflare workers. I just dont get it... how can such a service be free? it this temporary or permanent?
  • j

    johtso

    03/11/2023, 9:48 AM
    Are there any good free options for searchable logs from workers?
  • j

    johtso

    03/11/2023, 9:48 AM
    Is it possible to push to papertrail?
  • j

    johtso

    03/11/2023, 9:49 AM
    Don't get any Google results for: "papertrail" Cloudflare logpush
  • j

    johtso

    03/11/2023, 10:00 AM
    Also am i right that durable object logs actually come from the worker that's calling them? Does the log line include the DO id?
  • h

    HardAtWork

    03/11/2023, 10:02 AM
    Sentry, Honeycomb, Workers Logpush(if you want to grep it), write your own thing with the tail API...
  • j

    johtso

    03/11/2023, 10:05 AM
    I thought sentry was just for errors? They do generally logging too?
  • h

    HardAtWork

    03/11/2023, 10:08 AM
    IIRC they do? Though I don't think it directly logs `console.log`s, so you might want to go with Logpush if that is what you want.
  • j

    johtso

    03/11/2023, 10:09 AM
    I guess the distinction is structured be unstructured logs
  • j

    johtso

    03/11/2023, 10:10 AM
    And whether your worker needs to be responsible for importing a library to send the logs somewhere
  • j

    johtso

    03/11/2023, 10:20 AM
    "Sentry works with your application logging infrastructure, often integrating directly. It does not replace the need for those logs, and it's also not a destination for things that aren't actionable errors or crashes."
1...233623372338...2509Latest