https://discord.cloudflare.com logo
Join Discord
Powered by
# functions
  • k

    kavinplays

    11/21/2021, 11:06 AM
    Cloudflare has a big network and each deploy goes to all of them
  • k

    kavinplays

    11/21/2021, 11:07 AM
    Just rendering changed content is a goal, but I don't think we are anywhere near getting it
  • w

    wonkrattle

    11/21/2021, 11:09 AM
    So what do remote builds for workers do right now
  • w

    wonkrattle

    11/21/2021, 11:09 AM
    What’s the point of the non-local mode on the beta
  • g

    Greg Brimble | Cloudflare Pages

    11/21/2021, 11:10 AM
    Here’s the original announcement: http://blog.cloudflare.com/announcing-wrangler-dev-the-edge-on-localhost/
  • g

    Greg Brimble | Cloudflare Pages

    11/21/2021, 11:10 AM
    You can also use
    cloudflared tunnel
    for this today
  • w

    wonkrattle

    11/21/2021, 11:16 AM
    So how does the off-line version work, with miniflare
  • w

    William | Chaos Management

    11/21/2021, 11:21 AM
    seems like it was delayed
  • w

    William | Chaos Management

    11/21/2021, 11:21 AM
    now it shows 153
  • g

    Greg Brimble | Cloudflare Pages

    11/21/2021, 11:34 AM
    Yup
  • p

    PatrickJ

    11/21/2021, 11:38 AM
    If I have pages project with _worker.js, which responds with HTML that requests 1 js file and 1 css file, will it count as 3 worker invocations per page request?
  • k

    kavinplays

    11/21/2021, 11:44 AM
    yes atm
  • p

    PatrickJ

    11/21/2021, 11:45 AM
    Thanks
  • p

    PatrickJ

    11/21/2021, 11:54 AM
    I'd like to use library that handles SSR, however during bundling with
    esbuild ./server/worker.js --bundle --outfile=dist/_worker.js --format=esm
    I get an errors related to Node APIs. Does that mean that I won't be able to use this library or there is some magic trick that needs to happen during bundling process?
  • k

    kavinplays

    11/21/2021, 11:56 AM
    i don't think so, the runtime isn't node
  • p

    PatrickJ

    11/21/2021, 11:59 AM
    Yeah it seems for me that so. However they claim it works with workers (pre-page functions) when bundling with
    wrangler build
    command (https://vite-plugin-ssr.com/cloudflare-workers). Odd.
  • k

    kavinplays

    11/21/2021, 12:11 PM
    > Cloudflare Workers requires us to bundle our entire worker code into a single file. > > For bundlers to be able to discover & bundle the entire dependency tree, we need to use dist/server/importBuild.js.
  • k

    kavinplays

    11/21/2021, 12:11 PM
    are you doing that?
  • p

    PatrickJ

    11/21/2021, 12:26 PM
    Yep
  • j

    johanndev

    11/21/2021, 1:43 PM
    Hi! I wanted to try the new full-stack pages functionality, but I'm hitting roadblocks early in the process; after I was unable to get a very simple test app to run, I tried the sample project from https://github.com/cloudflare/images.pages.dev. After
    npm installing
    and starting the app with
    npm run start
    , I get the following output (see pastebin link). I'm on Windows 11 and node 16.7.0 - does any have any guidance for me? https://pastebin.com/j8WptfhL
  • k

    kavinplays

    11/21/2021, 1:44 PM
    can you pastebin it?
  • j

    johanndev

    11/21/2021, 1:44 PM
    sure
  • k

    kavinplays

    11/21/2021, 1:45 PM
    also have you read the blog post?
  • k

    kavinplays

    11/21/2021, 1:45 PM
    that might be helpful
  • j

    johanndev

    11/21/2021, 1:45 PM
    https://pastebin.com/j8WptfhL
  • g

    Greg Brimble | Cloudflare Pages

    11/21/2021, 1:46 PM
    We're aware of a bug on Windows, which I'm hoping to fix early next week: https://github.com/cloudflare/wrangler2/issues/32
  • g

    Greg Brimble | Cloudflare Pages

    11/21/2021, 1:46 PM
    Feel free to follow that issue to be notified when the fix is live.
  • g

    Greg Brimble | Cloudflare Pages

    11/21/2021, 1:46 PM
    Sorry for the inconvenience in the meantime.
  • j

    johanndev

    11/21/2021, 1:47 PM
    Thx for the quick reply - I'll try to patch my local version according to the issue 🙂
  • j

    johanndev

    11/21/2021, 1:54 PM
    The suggested change does not resolve the issue on my system - but as there is already an open issue on GH, I'll continue exploring full-stack pages on Linux via WSL in the meantime 🙂
1...121314...392Latest