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

    jacobmarble

    12/03/2021, 12:55 AM
    Can you tell me why the "internal error" then?
  • j

    jacobmarble

    12/03/2021, 12:56 AM
    Build ID might be
    8af8b3f5-5b98-4c86-948c-922c43344d1d
  • w

    whatnickdiscords

    12/03/2021, 12:58 AM
    Thanks
  • w

    whatnickdiscords

    12/03/2021, 12:59 AM
    I was a bit concerned. That makes sense and like that you all are basically bundling that on our behalf. To be honest, features like that are so desperately needed for Pages and beginners.
  • w

    whatnickdiscords

    12/03/2021, 1:00 AM
    Big missing piece
  • e

    Erwin

    12/03/2021, 1:01 AM
    Can't easily do that, not on the Pages team. Do you know how to run Miniflare?
  • j

    jacobmarble

    12/03/2021, 1:01 AM
    I can learn šŸ™‚
  • j

    jacobmarble

    12/03/2021, 1:01 AM
    Does it work with Pages?
  • e

    Erwin

    12/03/2021, 1:02 AM
    @User calls me her hype man.. and that is completely try. I absolutely adore Pages Functions.. they make it so insanely easy to get started with "just one tiny thing on the server".. and another tiny thing.. until you have an application..
  • e

    Erwin

    12/03/2021, 1:02 AM
    Wait.. I forgot Greg integrated it in the new wrangler
    npx wrangler@beta pages dev
    I think it is?
  • i

    itsmatteomanf

    12/03/2021, 1:03 AM
    Why was I mentioned? šŸ˜…
  • w

    whatnickdiscords

    12/03/2021, 1:03 AM
    I have seen your name so many times on Community Forum I thought you were Cloudflare rep
  • i

    itsmatteomanf

    12/03/2021, 1:04 AM
    Oh, nope. They don’t pay me šŸ˜‰
  • j

    Josh

    12/03/2021, 1:04 AM
    I wish
  • j

    Josh

    12/03/2021, 1:04 AM
    Naa, I love helping tbh
  • j

    jacobmarble

    12/03/2021, 1:05 AM
    https://blog.cloudflare.com/cloudflare-pages-goes-full-stack/
  • j

    jacobmarble

    12/03/2021, 1:05 AM
    I'll work on this for a while. Thanks Erwin!
  • e

    Erwin

    12/03/2021, 1:07 AM
    We pay our community champions in swag, not cash šŸ™‚
  • e

    Erwin

    12/03/2021, 1:08 AM
    Awesome! Let me know if there is anything we can do to help
  • e

    Erwin

    12/03/2021, 1:08 AM
    But also.. because I mostly tell it to their face only and every should know.. we are so incredibly lucky to have our community champions here.. They are what makes this server so incredible..
  • j

    Josh

    12/03/2021, 1:12 AM
    ā¤ļø
  • w

    whatnickdiscords

    12/03/2021, 1:14 AM
    Thanks so much! If I could throw into the universe while I have you... As a super fan of everything you all do. The Cloudflare
    Functions
    routes are super dope. 100% step in right direction for the platform and so glad you all are headed that way. šŸ˜„ Someone way earlier in this thread was commenting basically "Say I have /functions/weather.js. well wtf do I do with templating, HTMLRewriter?! ". And they are kind of right I have to agree. It would be nice to have the backend => frontend a bit more flushed out easier for templating. Right now option is either full rambo full framework + adaptor or basically just use functions for APIs (like the demo https://github.com/cloudflare/images.pages.dev)
  • w

    wonkrattle

    12/03/2021, 2:04 AM
    Right, the issue is that I don’t want the function to run when the service worker is downloading its cached version. Maybe there’s no way to do that now, but you can see why the exclusion would be valuable.
  • e

    Erwin

    12/03/2021, 2:07 AM
    There is no way for a function not to run, but if you could add like a query parameter to it when the service worker downloads or something, you could not do the work in the function.
  • e

    Erwin

    12/03/2021, 2:07 AM
    In the future, that might change indeed.
  • e

    Erwin

    12/03/2021, 2:11 AM
    Yeah, I hear you. We have all the components to make all that happen. Also to build that on top of the current functionality. We have template string literal at the bottom, through to templating engines like handlebars to hybrid rendering frameworks like React, Sveltekit and NextJS.
  • e

    Erwin

    12/03/2021, 2:11 AM
    I think it is a matter of packaging those things up into an easy to use whole that we haven’t really done yet.
  • w

    wonkrattle

    12/03/2021, 2:13 AM
    That’s a great point!
  • w

    wonkrattle

    12/03/2021, 2:16 AM
    Because correct me if I’m wrong, it is possible to exclude a route from workers at this point, but not from functions: https://community.cloudflare.com/t/exclude-paths-from-worker-routes/219395
  • e

    Erwin

    12/03/2021, 2:38 AM
    Exactly.. something that the team would like to solve, but won’t be right now.
1...282930...392Latest