I’m using Netlify Identity with Netlify Functions in one of my projects. When this project is pushed to production, I can see and use context.clientContext.user as described in the docs. However, when I’m using netlify dev locally, the context passed into my function is always an empty object.
To test that I’m using Identity + Functions correctly, I have to keep pushing to production. It would be nice if netlify dev provided the correct context for my function so I could test locally.
Hi, @numso. There is an open issue for context specific environment variables here:
Please keep in mind that Netlify Dev is in beta and is a work in progress. It is a public repo as well and we do encourage you to file issues as you find them.