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

    casdr

    11/21/2022, 8:23 PM
    Yes, that's where I overlooked, thanks for your help 🙂
  • u

    0xblackbird

    11/21/2022, 10:06 PM
    Hey, so now that CF is adding support to Nodejs for CF workers. Is there any chance to get a rough estimation when it will support packages that depend on for example fs like expressjs? I'm currently checking how I can SSR my angular app with CF Pages + functions. I now use prerendering but SSR would be much better for dynamic routes. Thanks in advance.
  • j

    James

    11/21/2022, 10:07 PM
    You won't really get any kind of ETA unfortunately, but given how its very early stages, I wouldn't bet on it being ready for use any time soon. If this is an app you want to deploy in the near future, I'd look into other solutions
  • u

    0xblackbird

    11/21/2022, 10:08 PM
    Got it! Thanks James!
  • u

    0xblackbird

    11/21/2022, 10:08 PM
    I might go with Google's app engine or look at other options if necessary
  • j

    James

    11/21/2022, 10:10 PM
    I'm not super familiar with Angular honestly, but it should be possible to do SSR with it on Workers these days and their much more usable streams compat
  • j

    James

    11/21/2022, 10:11 PM
    Although a quick google suggests maybe not 😦 https://github.com/angular/universal/issues/1740
  • u

    0xblackbird

    11/21/2022, 10:17 PM
    Just what I thought, angular universal relies on expressjs, alternatives require you to mess up with the view engines (came across a repo the other day but I didn't want to touch code and potentially introduce bugs & security issues, etc)
  • j

    jhmaster

    11/22/2022, 12:12 AM
    is there a way to emulate the "Fail open" mode of Functions to test how my website would behave with it active and possibly try to implement better fallback behavior?
  • c

    chrisjmccreadie

    11/22/2022, 7:13 AM
    I found another issue with the d1 work around for pages. If you try to use a KV datastore and a D1 locally it does not work. I updated the issue with the solution
  • c

    chrisjmccreadie

    11/22/2022, 7:13 AM
    https://github.com/cloudflare/wrangler2/issues/2168
  • j

    JamesGear

    11/22/2022, 9:32 AM
    help me plz
  • j

    JamesGear

    11/22/2022, 9:33 AM
    https://56b52368.functest1.pages.dev/testfun1/
  • j

    JamesGear

    11/22/2022, 9:33 AM
    can not be access ,why? what's wrong had I made
  • h

    HardAtWork

    11/22/2022, 9:35 AM
    The uploader on the dash doesn’t build functions
  • j

    JamesGear

    11/22/2022, 9:42 AM
    why?how can I do?
  • j

    JamesGear

    11/22/2022, 9:42 AM
    how to build functions?
  • h

    HardAtWork

    11/22/2022, 9:58 AM
    Use wrangler to upload, or build from GitHub/GitLab
  • j

    JamesGear

    11/22/2022, 10:00 AM
    get it
  • r

    rage5quid

    11/22/2022, 2:58 PM
    How would I go about building functions that exist of multiple typescript files? Is this something where wrangler can help? Or do I have to implement my own building and bundling?
  • k

    kian

    11/22/2022, 2:59 PM
    Just import them and Wrangler will bundle it
  • k

    kian

    11/22/2022, 2:59 PM
    It runs esbuild already
  • r

    rage5quid

    11/22/2022, 3:00 PM
    Will typescript files in the functions folder without methods like 'onRequest' be ignored?
  • r

    rage5quid

    11/22/2022, 3:01 PM
    By the routing
  • r

    rage5quid

    11/22/2022, 3:07 PM
    What do you mean by importing?
  • k

    kian

    11/22/2022, 3:08 PM
    import { ... } from "../foo";
  • r

    rage5quid

    11/22/2022, 3:09 PM
    Ah, thanks!
  • p

    Pause

    11/22/2022, 4:54 PM
    Is this still a priority?
  • s

    Sid | Pages

    11/22/2022, 4:55 PM
    I’m out of office but I believe @Walshy | Pages must’ve created a ticket and will prioritize accordingly.
  • p

    Pause

    11/22/2022, 4:55 PM
    Thank you.
1...310311312...392Latest