aleksandr
aleksandr
CDCloudflare Developers
Created by aleksandr on 9/7/2024 in #pages-help
Documentation on using wrangler.toml to configure a Pages project (not workers/functions)
FWIW, the link at the top of that screenshot doesn't help as that article doesn't list the available commands. There appears to be no way to change the build output directory or root directory. https://developers.cloudflare.com/pages/functions/wrangler-configuration/
2 replies
CDCloudflare Developers
Created by aleksandr on 9/1/2024 in #workers-help
Are Page Functions bundled differently than regular Workers?
Hmm, strange! Well it's good to know they (should) behave the same. I'll have to try again and see if I can figure out why the deploy throws those errors when deploying it as a Page Function instead of an ordinary worker. The package (prismjs) is installed in the root of my repo and imported correctly in the module that my Page Function imports.
5 replies
CDCloudflare Developers
Created by aleksandr on 9/1/2024 in #workers-help
Are Page Functions bundled differently than regular Workers?
No description
5 replies
CDCloudflare Developers
Created by aleksandr on 9/1/2024 in #workers-help
Are Page Functions bundled differently than regular Workers?
One interesting thing I found is that if I go to my Worker in my dashboard and click the Edit code link, I'm able to see the final bundled JavaScript and it looks like it's just bundling all those external modules, which explains why it doesn't run into any problems. So now I'm curious what Page Functions do differently.
5 replies
CDCloudflare Developers
Created by aleksandr on 8/31/2024 in #workers-help
Unable to test Cloudflare Page Function: [wrangler:err] Error: No response!
Okay, that resolved my issue (I'm running into other unrelated errors now, but this has unblocked me). Thanks so much!
9 replies
CDCloudflare Developers
Created by aleksandr on 8/31/2024 in #workers-help
Unable to test Cloudflare Page Function: [wrangler:err] Error: No response!
Ah, thanks James! Let me give that a shot.
9 replies
CDCloudflare Developers
Created by aleksandr on 8/31/2024 in #workers-help
Unable to test Cloudflare Page Function: [wrangler:err] Error: No response!
I also get this warning in my server console when following the quickstart example
▲ [WARNING] The entrypoint functions/api/comments.ts has exports like an ES Module, but hasn't defined a default export like a module worker normally would. Building the worker using "service-worker" format...
▲ [WARNING] The entrypoint functions/api/comments.ts has exports like an ES Module, but hasn't defined a default export like a module worker normally would. Building the worker using "service-worker" format...
9 replies
CDCloudflare Developers
Created by aleksandr on 8/31/2024 in #workers-help
Unable to test Cloudflare Page Function: [wrangler:err] Error: No response!
No description
9 replies