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

    Walshy | Pages

    03/19/2022, 7:10 PM
    Ah I see, yeah makes sense. I totally understand Svelte's position there. I agree in a unified approach so you could take this to something like Deno and it'd work right away
  • i

    Isaac McFadyen | YYZ01

    03/19/2022, 7:11 PM
    Yeah, I really like how they've done it (and they also now allow you to access bindings which is awesome). Just confusing sometimes for people getting started when they go "I created a Function but now my site doesn't work!"
  • i

    Isaac McFadyen | YYZ01

    03/19/2022, 7:11 PM
    Maybe I'll create an adapter docs PR or something.
  • w

    Walshy | Pages

    03/19/2022, 7:12 PM
    Is Svelte a SSR heavy framework?
  • l

    lynchy010

    03/19/2022, 7:13 PM
    The deploy didn't work... it's still serving old code. I'm adding logging to confirm 100%
  • i

    Isaac McFadyen | YYZ01

    03/19/2022, 7:13 PM
    Kinda a combo. So you can turn off SSR altogether and use static, but the recommended Pages way to go now is to SSR everything. It's a combo approach where they run loading on the Function like Remix and then send that serialized to the client, where it can run it again if it needs to.
  • i

    Isaac McFadyen | YYZ01

    03/19/2022, 7:13 PM
    For example if I go to a new page it runs loading on client with a router etc, but if I just go direct to the address it's SSRed.
  • s

    Skye

    03/19/2022, 7:14 PM
    Could you have some pages statically served and some SSR?
  • w

    Walshy | Pages

    03/19/2022, 7:14 PM
    Wait I don't think I was super clear here A unified way to do it in the framework itself. You should be able to use our functions or other platforms functions without changing framework code. They should in my opinion though switch away from a _worker.js and to a functions folder. This will be a much better approach for functions billing and stuff too
  • i

    Isaac McFadyen | YYZ01

    03/19/2022, 7:14 PM
    Yeah via a prerender tag.
  • w

    Walshy | Pages

    03/19/2022, 7:15 PM
    Pages deployments definitely serve new code. If you're seeing old verify on the pages.dev because you may have caching setup on your custom domain
  • i

    Isaac McFadyen | YYZ01

    03/19/2022, 7:15 PM
    Oh. No idea how that could work, that would be something you could talk to Lukeed about since he does most of the adapter work.
  • w

    Walshy | Pages

    03/19/2022, 7:15 PM
    Got it, ty I think edge SSR is the future so happy to see frameworks going that way
  • s

    Skye

    03/19/2022, 7:15 PM
    Interesting. I've been thinking about switching frameworks from nuxt recently. Currently between svelte, remix & qwik
  • w

    Walshy | Pages

    03/19/2022, 7:16 PM
    I'm a big Remix fan but Svelte is blowing up recently
  • i

    Isaac McFadyen | YYZ01

    03/19/2022, 7:16 PM
    I'm skeptical about Qwik, the community is definitely bigger for Remix and Svelte. I love Svelte and Remix but it's also about what you want to write in. Some people including me prefer Svelte since it's more simple but React is also cool.
  • i

    Isaac McFadyen | YYZ01

    03/19/2022, 7:16 PM
    And Remix is working on Preact support I think.
  • s

    Skye

    03/19/2022, 7:16 PM
    Qwik seems very cool, however it seems really difficult to get into, the syntax is rather confusing
  • l

    lynchy010

    03/19/2022, 7:16 PM
    @User that was it. I wish I knew I could purge cache a half hour ago
  • s

    Skye

    03/19/2022, 7:17 PM
    I'm currently a vue dev though, so either way, whatever I change to is a new step
  • w

    Walshy | Pages

    03/19/2022, 7:17 PM
    There must be a way to do Vue on edge right?
  • s

    Skye

    03/19/2022, 7:17 PM
    Nuxt 3 does support that
  • s

    Skye

    03/19/2022, 7:18 PM
    However I feel like I'd rather move away as I work on new proejcts
  • l

    lynchy010

    03/19/2022, 7:18 PM
    @User @User can you try https://backofyourhand.com/ now?
  • w

    Walshy | Pages

    03/19/2022, 7:18 PM
    That's fair enough
  • k

    kian

    03/19/2022, 7:18 PM
  • a

    andrew | 1003

    03/19/2022, 7:18 PM
    after clearing cache it works but shows i am in london haha (i live in US)
  • i

    Isaac McFadyen | YYZ01

    03/19/2022, 7:18 PM
    Yeah I find Vue syntax confusing. Course that could be because I come from Svelte and React.
  • s

    Skye

    03/19/2022, 7:18 PM
    It works for me (had to ctrl + f5 though)
  • l

    lynchy010

    03/19/2022, 7:19 PM
    that's probably cache on mobile for @User
1...103104105...392Latest