altie122A
Convex Community5w ago
1 reply
altie122

optional env variables required by convex

Advice
I'm trying to get the Polar SDK to work so I can do some stuff that the Polar component alone is unable to but it keeps wanting environment variables that aren't required by the
new Polar
function to be present. is there any way around this?

> @altie122studios/backend@0.0.0 dev C:\Users\altie\OneDrive\Documentos\code\web\Altie122-Studios\packages\backend
> convex dev

A patch update is available for Convex (1.31.2 → 1.31.7)
Changelog: https://github.com/get-convex/convex-js/blob/main/CHANGELOG.md#changelog
✖ Environment variable POLAR_DEBUG is used in auth config file but its value was not set.
Go to:

    https://dashboard.convex.dev/d/combative-dolphin-693/settings/environment-variables?var=POLAR_DEBUG

  to set it up. 


the code is the barebones
new Polar
code:
const polar = new Polar({
  accessToken: process.env.POLAR_ACCESS_TOKEN!,
  server: process.env.POLAR_SERVER! as "production" | "sandbox" | undefined,
});
Was this page helpful?