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

    Electroid

    01/15/2021, 12:34 AM
    Are you using wrangler? I don't think we support webpack 5 yet (4 is a baked in requirement)
  • a

    advaith

    01/15/2021, 12:35 AM
    yeah i am
  • e

    Electroid

    01/15/2021, 12:35 AM
    A workaround for now would be to change your project to javascript, and do
    webpack
    before running
    wrangler build
    .
  • e

    Electroid

    01/15/2021, 12:35 AM
    We are going to fix that very soon, though
  • k

    kristian

    01/15/2021, 12:36 AM
    to be clear is this with
    wrangler dev
    ?
  • a

    advaith

    01/15/2021, 12:36 AM
    yes
  • k

    kristian

    01/15/2021, 12:36 AM
    @User maybe we should make #wrangler 🙂
  • k

    kristian

    01/15/2021, 12:36 AM
    cc @User
  • r

    rita

    01/15/2021, 12:36 AM
    yesssss! 100%
  • k

    kristian

    01/15/2021, 12:39 AM
    🆕 #799437470004412476
  • a

    advaith

    01/15/2021, 12:47 AM

    https://advaith.is-in-hyper.space/f5a90a14fd.pngâ–¾

  • a

    advaith

    01/15/2021, 12:47 AM
    nice
  • a

    ai

    01/15/2021, 12:47 AM
    nice
  • k

    kristian

    01/15/2021, 12:49 AM
    does that
    used /hello with WorkerBot
    get output to everyone else in the channel too?
  • k

    kristian

    01/15/2021, 12:49 AM
    interesting UI
  • w

    Walshy | Pages

    01/15/2021, 12:49 AM
    Yes
  • w

    Walshy | Pages

    01/15/2021, 12:50 AM
    Type 4 shows the command used. Type 3 just replies
  • a

    ai

    01/15/2021, 12:50 AM
    probably for "who did 'at everyone'"
  • a

    advaith

    01/15/2021, 12:50 AM

    https://advaith.is-in-hyper.space/4733ce61db.pngâ–¾

  • a

    advaith

    01/15/2021, 12:50 AM
    you can also send it as an ephemeral message
  • a

    advaith

    01/15/2021, 12:51 AM

    https://advaith.is-in-hyper.space/c67ac5dd72.pngâ–¾

  • a

    advaith

    01/15/2021, 12:52 AM
    this is running through a cloudflare tunnel to the worker on my computer with
    wrangler dev
    lol
  • k

    kristian

    01/15/2021, 12:52 AM
    that's so awesome!!!
  • s

    shak360

    01/15/2021, 2:32 AM
    I'm a beginner with regards to cloudflare workers, but I was just wondering, can cloudflare workers give static websites a lot of the functionality that dynamic websites might have? For example, could cloudflare workers power a chat app served on a static site? (Also sorry if this is the wrong place to ask such a question, please point me to some where that might be better)
  • c

    cproetti

    01/15/2021, 2:41 AM
    Yes
  • c

    cproetti

    01/15/2021, 2:42 AM
    You can accomplish pretty much whatever functionality your site needs.
  • s

    shak360

    01/15/2021, 2:43 AM
    Could I even have a static site interface with a server using a worker?
  • c

    cproetti

    01/15/2021, 2:45 AM
    Workers can make sub-requests of their own using fetch(). You can have some static HTML and then splice into that HTML some response from your origin server from fetch(). Exactly how you go about accomplishing it is up to you. Theres always many ways to accomplish the desired outcome.
  • c

    cproetti

    01/15/2021, 2:46 AM
    You may even want to rethink the need of having an origin server. Likely you can accomplish everything your website needs, all on the worker (no origin server required).
  • s

    shak360

    01/15/2021, 2:48 AM
    So can cloudflare workers even supplant a database, like one in PostgreSQL?
1...495051...2509Latest