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

    Spoleto

    03/22/2023, 8:36 PM
    Seems I am close with this JS but its not working
  • w

    Walshy | Pages

    03/22/2023, 8:38 PM
    cf.botManagement.verifiedBot
  • w

    Walshy | Pages

    03/22/2023, 8:38 PM
    But requires Bot Management
  • k

    kian

    03/22/2023, 8:38 PM
    Is
    cf.client.bot
    still behind BM w/ the Ruleset Engine?
  • w

    Walshy | Pages

    03/22/2023, 8:39 PM
    You could check if
    clientTrustScore
    is like 0 or 1
  • w

    Walshy | Pages

    03/22/2023, 8:39 PM
    Errr, good question...
  • k

    kian

    03/22/2023, 8:39 PM
    cf.bot_management.verified_bot
    is, but I don't know about
    cf.client.bot
  • k

    kian

    03/22/2023, 8:39 PM
    If not, Transform Rule to add request header
  • k

    kian

    03/22/2023, 8:39 PM
  • w

    Walshy | Pages

    03/22/2023, 8:41 PM
    The docs don't say
  • s

    Spoleto

    03/22/2023, 8:43 PM
    Plus only have pro account hmmmm
  • s

    Spoleto

    03/22/2023, 8:44 PM
    I can easily solve this with JS, but wanted to accomplish with worker
  • c

    computeronix

    03/22/2023, 8:50 PM
    It would be really cool if in web interface of worker if you could click install package (kind of like GitHub marketplace) where. You find a package and click install then itโ€™s available to use in worker without having to use wrangler ๐Ÿ˜‰
  • j

    JustinNoel

    03/22/2023, 9:22 PM
    I'm building something I'm not ready to share yet. Can I DM you when it's ready? ๐Ÿ˜œ Really about 2 months.
  • s

    Spoleto

    03/22/2023, 9:49 PM
    So its safe to say, not possible in Pro plan.... orrrr?
  • b

    Brian.

    03/23/2023, 12:14 AM
    Hi - I am encountering an issue where there is a fetch on a worker that appears to be hanging. The weird thing is that it only appears to happen with
    .dev
    domains. Please see this example -- i have only changed the identifying info. Any ideas?
    anon
  • c

    computeronix

    03/23/2023, 12:15 AM
    ok wrangler noob for the first time :). any ideas ๐Ÿ˜„ npx wrangler publish โ›…๏ธ wrangler 2.13.0 -------------------- โœ˜ [ERROR] Missing entry-point: The entry-point should be specified via the command line (e.g.
    wrangler publish path/to/script
    ) or the
    main
    config field. If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose npx wrangler publish xxx/wrangler.toml โ›…๏ธ wrangler 2.13.0 -------------------- โœ˜ [ERROR] No loader is configured for ".toml" files: xxx/wrangler.toml โœ˜ [ERROR] No loader is configured for ".toml" files: xxx/wrangler.toml โœ˜ [ERROR] Build failed with 1 error: error: No loader is configured for ".toml" files: xxx/wrangler.toml
  • b

    Brian.

    03/23/2023, 12:17 AM
    wrangler publish path/to/script
    ... is
    wrangler publish src/index.js
    or you can configure this file in your
    wrangler.toml
  • b

    Brian.

    03/23/2023, 12:18 AM
  • c

    computeronix

    03/23/2023, 12:23 AM
    thanks Brian! that file is configured and its still same error ๐Ÿ˜ฆ
  • t

    tatobolanos

    03/23/2023, 12:23 AM
    Copy code
    Uncaught TypeError: WebAssembly.Instance(): Import #11 module="env" error: module is not an object
      or function
        at shim.js:13:9
       [code: 10021]
  • t

    tatobolanos

    03/23/2023, 12:23 AM
    anyone know this error?
  • b

    Brian.

    03/23/2023, 12:27 AM
    Ok - was my best guess. I usually do do
    wrangler publish
    and not specify a file.
  • c

    computeronix

    03/23/2023, 12:36 AM
    no worries and its crazy yea you would think that would work and it gives me that error
  • c

    computeronix

    03/23/2023, 1:03 AM
    got it ๐Ÿ˜„
  • k

    Keizer

    03/23/2023, 1:21 AM
    I have my domain pointed to CF but I don't have an A record in there. Do I have to deploy in Pages to have it recognize instead of just specifying in "Workers Routes" ?
  • k

    Keizer

    03/23/2023, 1:22 AM
    I just want the apex to go to my Worker lol
  • c

    Cyb3r-Jok3

    03/23/2023, 1:22 AM
    Sounds like you want custom domains
  • c

    Cyb3r-Jok3

    03/23/2023, 1:23 AM
    https://developers.cloudflare.com/workers/platform/triggers/custom-domains/
  • s

    sirhype

    03/23/2023, 1:25 AM
    With the MailChannels integration, is there anything on their side stopping people from using the integration outside of Workers? Or is it technically available anywhere
1...235423552356...2509Latest