i40west
CDCloudflare Developers
•Created by centml-pavel on 3/25/2025 in #workers-help
Saving token between builds
If you make it a Secret it will persist. Regular variables must be all in one place or the other. Indeed, if it's an API token or something like it, it really should be a Secret.
5 replies
CDCloudflare Developers
•Created by centml-pavel on 3/25/2025 in #workers-help
Saving token between builds
There's nothing special to do; if you define them they will stay. However, if you have variables defined in your Wrangler config (wrangler.toml or similar) then all variables must be defined there, and only Secrets can be done via the dashboard. If your variables are disappearing it may be due to this conflict?
5 replies
CDCloudflare Developers
•Created by makisuo on 1/17/2025 in #pages-help
Monorepo Builds keep using npm instead of bun
You can set an environment variable SKIP_DEPENDENCY_INSTALL (to any value) and then put whatever installation you need in your build command.
12 replies
CDCloudflare Developers
•Created by abelsj60 on 12/21/2024 in #pages-help
Deploying Remix w/Vite (dev v. prod)
I always use
preview
before deciding I'm done with anything.4 replies
CDCloudflare Developers
•Created by abelsj60 on 12/21/2024 in #pages-help
Deploying Remix w/Vite (dev v. prod)
What I do is I have a
dev
script in my package.json
that runs remix vite:dev
. Then I have a preview
one that runs wrangler pages dev ./build/client
.4 replies
CDCloudflare Developers
•Created by abelsj60 on 12/21/2024 in #pages-help
Deploying Remix w/Vite (dev v. prod)
You can actually run it either way. The normal
dev
server will use vite. My experience is that it is not reliable and doesn't work very well, but it's fast and it hot-reloads. You can also run wrangler pages dev
directly on it, you just have to build the project first and there won't be any hot reloading.4 replies
CDCloudflare Developers
•Created by Armand on 12/16/2024 in #pages-help
Custom URL for preview deployments
You can point a custom domain to a git branch, so it will always be the latest preview deployment of that branch. So if you have a branch
dev
then you can have dev.example.com
always be the most recent deployment of that branch.
https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/4 replies
CDCloudflare Developers
•Created by nicetomytyuk on 12/10/2024 in #pages-help
How to setup a custom domain for a develop branch?
You have to be using Cloudflare DNS for this to work.
3 replies
CDCloudflare Developers
•Created by totallyinformation on 12/1/2024 in #pages-help
_headers file and Astro
The
_headers
file goes at the top level of your output folder. The way you do that in Astro is to put it in the static asset folder, so it is copied as-is. Pages will pick it up from the output folder.7 replies
CDCloudflare Developers
•Created by totallyinformation on 12/1/2024 in #pages-help
_headers file and Astro
7 replies
CDCloudflare Developers
•Created by totallyinformation on 12/1/2024 in #pages-help
_headers file and Astro
Files under
/src/
are processed by Astro. For _headers
you want it to be used as-is as a static asset, so it should be in your directory for static assets, which is /public/
by default.7 replies
CDCloudflare Developers
•Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
oh lol
32 replies
CDCloudflare Developers
•Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
Maybe that's why other people weren't reporting this; no one is enabling logs because it's a paid feature :lul:
32 replies
CDCloudflare Developers
•Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
Thanks 🙂
32 replies
CDCloudflare Developers
•Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
Billing not a concern 🙂
32 replies
CDCloudflare Developers
•Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
Yeah, my workflow is an update of my Worker that takes webhooks from Cloudflare health checks, hits the CF API, then hits the PagerDuty api. It only gets invoked when my personal servers go down, which they basically never do :lul:
32 replies
CDCloudflare Developers
•Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
So, maybe safe to just ignore it since the code actually works?
32 replies