()
| 41 | } |
| 42 | |
| 43 | function 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 | |
| 51 | function resolveStatus( |
| 52 | status: string | null | undefined, |