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
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
CDCloudflare Developers
•Created by bebraw on 3/7/2023 in #pages-help
Solved - Uploading weirdness - AAGfailed: ParseError
it seems fine now so maybe it was some temporary glitch
2 replies
CDCloudflare Developers
•Created by bebraw on 2/17/2023 in #pages-help
How to cancel deployment if any part of the build fails or throws an error?
it would be cool if you could add a recipe with these sort of tricks to the docs
5 replies
CDCloudflare Developers
•Created by bebraw on 2/17/2023 in #pages-help
How to cancel deployment if any part of the build fails or throws an error?
nice, that's even better than spamming
exit 1
(which seems to work)5 replies
CDCloudflare Developers
•Created by bebraw on 2/17/2023 in #pages-help
How to cancel deployment if any part of the build fails or throws an error?
i think i'll try something along
|| exit 1
https://stackoverflow.com/questions/30078281/raise-error-in-a-bash-script5 replies
CDCloudflare Developers
•Created by bebraw on 1/4/2023 in #pages-discussions
has the font infrastructure of
thanks for help and have a nice year
20 replies