So I have an app where I have 2 Gadget Clients to communicatie with another Gadget app. So I have set it in the backend by adding the client package. By default it adds this Package:
Now this looks like it only points to the development environment, which is kinda logical, but what do I need to do for it to point to production in my production environment?
I have added this environment line to my client code:
import { Client } from "@gadget-client/soof-app";export const bridgeApi = new Client({ environment: process.env.NODE_ENV, authenticationMode: { apiKey: process.env.SOOF_BRIDGE_API_KEY },});
import { Client } from "@gadget-client/soof-app";export const bridgeApi = new Client({ environment: process.env.NODE_ENV, authenticationMode: { apiKey: process.env.SOOF_BRIDGE_API_KEY },});
But this doesn't seem to make it point to production. Or maybe it is not being updated correctly? I am not sure tbh.