MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getServer

Function getServer

packages/payments/scripts/sync-subscriptions.ts:43–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43function getServer() {
44 if (process.env.POLAR_SERVER) {
45 return process.env.POLAR_SERVER === 'production' ? 'production' : 'sandbox';
46 }
47
48 return process.env.NODE_ENV === 'production' ? 'production' : 'sandbox';
49}
50
51function resolveStatus(
52 status: string | null | undefined,

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected