To fix this, you could set your authentication so you local code connects to your live server’s Datastore, but chances are that’s not what you really want to do.
I actually do want to connect to my live server’s datastore. Do you have an example of how to do that?
I’m running java 11 app engine with legacy APIs enabled and we use cloud firestore in datastore mode.
I do not want to have to run the local emulator as our data setup jumps through quite a few hoops, so it would actually be a lot easier to connect to our live server when developing locally. This would grealty speed up full-stack development because we wouldn’t have to deploy a backend to have our frontend connect to.
It’s been a while since I’ve used Google Cloud, so I don’t know how to connect to your prod Datastore off the top of my head. I found these related posts: