i40west
i40west
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
CDCloudflare Developers
Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
oh, those bugs are the BEST :lul:
32 replies
CDCloudflare Developers
Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
That's the mysterious thing. I had a "real" workflow that actually did stuff, and it worked perfectly, then threw this exception, so I kept digging for what I was doing wrong.
32 replies
CDCloudflare Developers
Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
That's from the real-time log. The entry from the regular Observability log omits the console messages but has the rest of the same stuff.
32 replies
CDCloudflare Developers
Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
No description
32 replies
CDCloudflare Developers
Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
Okay, that didn't fix it.
32 replies
CDCloudflare Developers
Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
Wait, so returning something from run() is mandatory? Knowing that would have saved me two days of frustration :lul:
32 replies