aleclarson
CDCloudflare Developers
•Created by aleclarson on 3/17/2025 in #general-help
wrangler host inspector on 0.0.0.0
Long story short, I'm trying to connect to
wrangler pages dev
inspector running inside a Docker container. It appears the inspector can only bind to localhost, which means I'm forced to set up a reverse proxy. Could this be made customizable? I think you used to be able to do --inspect=0.0.0.0:9229
right?2 replies
CDCloudflare Developers
•Created by aleclarson on 3/14/2025 in #pages-help
Question about `pages functions build` command
I'm using the
pages functions build
command, then deploying it through _worker.js
(Advanced Mode).
1. The build command was bothering me about Node.js compatibility even though my wrangler.toml
file has the required properties. I suppose that means this command doesn't look for a wrangler config file?
2. If that's the case, can I put my wrangler config file somewhere else when deploying so its service bindings are used?
3. If I'm using _worker.js
, can I still use _routes.json
to control when my advanced worker is invoked? The docs seem to indicate "no" but it's not totally clear.2 replies
CDCloudflare Developers
•Created by aleclarson on 3/13/2025 in #workers-help
Serve static assets from root path, then handle /api/ requests with my worker?
I was hoping the "Static assets" feature could help me simplify my setup (currently Pages + Workers). I'm having trouble with
wrangler dev
currently. I want to serve static assets (stored in public
directory on filesystem) for every request except for /api/
requests, which my worker should handle.15 replies
CDCloudflare Developers
•Created by aleclarson on 3/12/2025 in #general-help
Connecting to a TCP tunnel from Cloudflare Workers
If I'm using Cloudflare Zero Trust tunnel to expose a TCP service, will my Cloudflare Worker automatically have access to it (assuming no access policy was created), or do I need to use a service token?
4 replies
CDCloudflare Developers
•Created by aleclarson on 3/12/2025 in #general-help
pages.dev tunnel
I have a Cloudflare tunnel with ingress rules like:
essentially, i want
/api/*
traffic to go to the NodeJS server, then other traffic forwarded to Cloudflare pages.
is this not supported? or is there a right way to do it?20 replies