Replies: 3 comments
-
To clarify, |
Beta Was this translation helpful? Give feedback.
-
You should be using |
Beta Was this translation helpful? Give feedback.
-
@Mecanik yeah I agree that using Now as @james-elicx mentioned you should just use It still feels slightly tedious that a preview phase is needed to validate the app before deployment, but given the technical limitations I think that is the best possible DX we can currently have 🙂 |
Beta Was this translation helpful? Give feedback.
-
Hi guys,
I'm having trouble understanding how to use the local development environment properly. These are defined in
package.json
:So if I run
npm run dev
, the site builds and I can see it onlocalhost:3000
, but there is nothing available from wrangler (bindings, etc).However if I run
npm run pages:dev
, then wrangler is called and I have access to bindings and so on, but it's not compiling it properly.And from my tests,
pages:
commands do not respectNODE_ENV=development
(event after adding them in the command line). I also have.dev.vars
,.env
, etc; it's all a mess.With that being said, can someone please clarify which command does what exactly in this instance? I am keen to understand how exactly are you developing locally with this project, having access to bindings, etc. Same thing for production.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions