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.1 Reply
Strange that
pages functions build
has no --define
flag :(