Got it. Need to build first. I guess --

Got it. Need to build first. I guess --remote requires the built project.
4 Replies
thomasgauvin
thomasgauvin•3mo ago
--remote should not require the built project, but it also may depend on your configuration and what wrangler.jsonc is being used, what is your project setup?
omortis
omortisOP•3mo ago
Hmm - what exactly are you asking for? The contents of the jsonc file? Not the comments 🙂 What in the config would cause it to require it to be built prior to using --remote? I think I've only added bindings. "kv_namespaces": [ { "binding": "CROM", "id": "hex", "preview_id": "hex" } ], "r2_buckets": [ { "bucket_name": "crom", "binding": "CROMR2", "preview_bucket_name": "preview-crom", "experimental_remote": true, }, ]
thomasgauvin
thomasgauvin•3mo ago
What type of project is this? OpenNext? Just a Worker project?
omortis
omortisOP•3mo ago
react-router. framework mode For what it's worth I am working on a similar project at my day job now, without that experimental_remote line above and I still have to npm run build the code before running with --remote. Otherwise the changes to not get pushed. Seems to be reading from the built project. Not a big deal at all.

Did you find this page helpful?