SPS | Shootmail
Explore posts from serversContext is not available, context storage middleware
Thanks for replying. Yes i use context variable map. My concern was how to init the db using env vars outside of the route methods. I misunderstood the context storage. I thought, the context storage will be available outside the route chain but that's not the case. So i am setting db in variables in a middleware and accessing it in the controllers.
9 replies