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

    Nevi | Pages

    11/18/2021, 7:50 PM
    Hey Pages peeps! Yesterday, we announced that you can now build full stack applications on Pages using "Functions"! Because we have only released an open beta, it's important for us to gather as much feedback as possible from all of you as you build and try it out. Creating this channel here for you to drop your thoughts, questions, issues and bug finds for anything related to Functions. And if you've built something cool - share it with us too! Happy building! 🔨 💻 ✨ Blog: https://blog.cloudflare.com/cloudflare-pages-goes-full-stack/ Docs: https://developers.cloudflare.com/pages/platform/functions cc: @User @User 🙂
  • w

    Walshy | Pages

    11/18/2021, 7:51 PM
    1st
  • n

    Nevi | Pages

    11/18/2021, 7:51 PM
    special!
  • w

    Walshy | Pages

    11/18/2021, 7:51 PM
    you know me :^)
  • o

    O B I N N A

    11/18/2021, 8:00 PM
    Hello friends!
  • o

    O B I N N A

    11/18/2021, 8:00 PM
    @User 🙌🏾
  • w

    Walshy | Pages

    11/18/2021, 8:02 PM
    yo!
  • e

    e0

    11/18/2021, 8:09 PM
    Great to have a dedicated channel! I will just link to the comment for some pain points I'm dealing with right now. https://discord.com/channels/595317990191398933/789155108529111069/910966852061134910 If anyone has good tips for debugging deployed functions in the meantime I would really appreciate it.
  • m

    MrBBot

    11/18/2021, 8:12 PM
    Hey! 👋 Any chance you can share the code for this? It's quite likely Miniflare (what powers
    wrangler pages dev
    ) should be throwing an error here too. 👍
  • c

    Cоlе

    11/18/2021, 8:29 PM
    I have a semi-offtopic question. We're trying to convert one of our sites to a pages-functions site. We're adding a "like" feature that involves doing a single discord oauth request every time.
  • c

    Cоlе

    11/18/2021, 8:30 PM
    My boss is trying to convince us that we should be caching the oauth requests in KV for x amount of time, because making an extra 'fetch' each request would be expensive. Could someone say if this would actually matter
  • j

    James

    11/18/2021, 9:05 PM
    I think the only "expensive" part about that will be any Discord API rate limits you may hit over time
  • c

    Cоlе

    11/18/2021, 9:07 PM
    Base is 50 a sec, which isn't bad
  • s

    simpson

    11/18/2021, 9:17 PM
    you should definitely cache even for a small amount of time, unless you have a very low traffic site
  • c

    Cоlе

    11/18/2021, 9:25 PM
    it is pretty low traffic now, but of course scalability is important. trying to hit the balance of "secure" and "scalable"
  • c

    Cоlе

    11/18/2021, 9:26 PM
    with the cache having no user-end "log out" button
  • c

    Cоlе

    11/18/2021, 10:52 PM
    on topic this time, when I try to deploy, I get this:
    Copy code
    16:39:48.894    Finished
    16:39:49.042    Compiling worker to "/opt/pages/functions/user-worker.js"
    16:39:49.102    Finished in 115ms.
    16:39:49.108    Validating asset output directory
    16:39:49.517    Deploying your site to Cloudflare's global network...
    16:39:54.138    Failed: an internal error occurred
    any ideas? can't deploy with wrangler dev *rn cuz of the windows bug
  • w

    Walshy | Pages

    11/18/2021, 10:53 PM
    Looks like the Worker was fine
  • i

    Isaac McFadyen | YYZ01

    11/18/2021, 10:53 PM
    I'm getting the same error, actually. My build was working until it was not (no changes). EDIT: Fixed, working now.
  • w

    Walshy | Pages

    11/18/2021, 10:53 PM
    Can you retry the deployment?
  • c

    Cоlе

    11/18/2021, 10:54 PM
    I'm retrying it rn
  • c

    Cоlе

    11/18/2021, 10:56 PM
    almost there
  • c

    Cоlе

    11/18/2021, 10:57 PM
    yea same thing
  • c

    Cоlе

    11/18/2021, 10:57 PM
    it was doing it last night as well.
  • c

    Cоlе

    11/18/2021, 11:03 PM
    I read from cf support threads that stuff like filesize limits and filenames can mess it up, but I don't see anything weird in my project
  • w

    Walshy | Pages

    11/18/2021, 11:04 PM
    These were fixed and give an actual error
  • w

    Walshy | Pages

    11/18/2021, 11:05 PM
    Let me report this, we've been seeing increased build failures lately.
  • c

    Cоlе

    11/18/2021, 11:05 PM
    cool
  • w

    Walshy | Pages

    11/18/2021, 11:06 PM
    Can you send me your pages.dev domain in DMs please?
  • w

    Walshy | Pages

    11/18/2021, 11:06 PM
    What fixed it for you? Did you make any change?
12345...392Latest