bebraw
Explore posts from serversCDCloudflare Developers
•Created by Brunão77 on 5/26/2024 in #pages-help
Build SSR Astro
that's
compatibility_flags = ["nodejs_compat"]
in wrangler configuration3 replies
CDCloudflare Developers
•Created by Brunão77 on 5/26/2024 in #pages-help
Build SSR Astro
Did you set the compatibility flag? More: https://developers.cloudflare.com/workers/runtime-apis/nodejs/crypto/
3 replies
CDCloudflare Developers
•Created by locohost on 4/20/2024 in #pages-help
I must be missing a bit on CF Pages "functions" folder, it never works for me
for more complex routing, maybe having a catch-all worker at the root would be an option depending on your routing requirements
7 replies
CDCloudflare Developers
•Created by locohost on 4/20/2024 in #pages-help
I must be missing a bit on CF Pages "functions" folder, it never works for me
just for an experiment, i would try skipping vite at first
7 replies
CDCloudflare Developers
•Created by locohost on 4/20/2024 in #pages-help
I must be missing a bit on CF Pages "functions" folder, it never works for me
reading from https://hono.dev/getting-started/cloudflare-workers, you should be able to import hono from a worker
7 replies
CDCloudflare Developers
•Created by locohost on 4/20/2024 in #pages-help
I must be missing a bit on CF Pages "functions" folder, it never works for me
@locohost can you get a basic hello world from https://developers.cloudflare.com/pages/functions/get-started/ going?
7 replies
CDCloudflare Developers
•Created by Juuullia on 5/9/2024 in #pages-help
How can I override the npm version?
That's the solution I'm using anyway to handle a similar issue.
4 replies
CDCloudflare Developers
•Created by Juuullia on 5/9/2024 in #pages-help
How can I override the npm version?
I think
.nvmrc
should do the trick. Example: https://github.com/survivejs/website-v3/blob/main/.nvmrc4 replies
How to abstract tests to allow running different functions against the same test suite?
that sounds nice. do you have a public example somewhere? i think i'll start out by splitting up the tests anyway. i even thought about writing some type of JSON with input/output kind of format as that fits my use case and it's sort of tool agnostic
5 replies
CDCloudflare Developers
•Created by leigh on 7/21/2023 in #pages-help
Deploy Deno static site
in my case (a site with 425 pages) it spends 5 seconds on dependencies alone out of 1.5 minute total. that's not bad but at the same time it's nice to avoid the cost if possible
6 replies
CDCloudflare Developers
•Created by leigh on 7/21/2023 in #pages-help
Deploy Deno static site
it's pretty fast to install deno through a build script but it's annoying, yeah. i know cloudflare supports caching these days (https://developers.cloudflare.com/pages/configuration/build-caching/#frameworks) so assuming we were able to pull deno dependencies to a cached directory that would speed things up nicely most likely
6 replies
CDCloudflare Developers
•Created by bebraw on 4/11/2024 in #pages-help
Custom environment variables set for a Pages project get lost
it looks like downgrading wrangler from
3.48.0
to 3.31.0
solved the issue. i think i have to read the changelogs later to understand how to change my code to make env work again in the newer version. thanks for rubberducking4 replies
CDCloudflare Developers
•Created by bebraw on 4/11/2024 in #pages-help
Custom environment variables set for a Pages project get lost
the weird thing is that both projects are using wrangler so maybe i'll try reducing them to the same version or so
4 replies
CDCloudflare Developers
•Created by bebraw on 4/11/2024 in #pages-help
Custom environment variables set for a Pages project get lost
Compared to another project that's working as expected, this one is doing
Reading build configuration from your wrangler.toml file...
for some reason so I suppose figuring out how to avoid this particular step might resolve the whole problem4 replies
CDCloudflare Developers
•Created by bebraw on 12/20/2023 in #pages-help
Is there an example of how to use Cloudflare Cron Triggers within Cloudflare Pages?
yup, i'll do something like that as a workaround - maybe it's worth documenting. thanks a lot for fast turnaround
6 replies
CDCloudflare Developers
•Created by bebraw on 12/20/2023 in #pages-help
Is there an example of how to use Cloudflare Cron Triggers within Cloudflare Pages?
ok, thanks. that makes sense. it's not always clear what's supported and what not. i hope you can consider adding cron support directly to pages one day 👍
6 replies
Seamlessly include Tailwindcss
note that twind doesn't seem to be actively maintained anymore (i use it as well). unocss is roughly comparable although it doesn't have exactly full parity (but it has some features twind doesn't). integration with deno is fairly simple: https://github.com/gustwindjs/gustwind/blob/develop/plugins/uno/mod.ts
6 replies