accept polar config in code

This commit is contained in:
Shawn Erquhart
2025-02-27 13:04:20 -05:00
parent fe1fb35bc9
commit 287aba7952
3 changed files with 32 additions and 9 deletions

View File

@@ -21,6 +21,11 @@ export const polar = new Polar(components.polar, {
email: user.email,
};
},
// These can be configured in code or via environment variables
// Uncomment and replace with actual values to configure in code:
// organizationToken: "your_organization_token", // Or use POLAR_ORGANIZATION_TOKEN env var
// webhookSecret: "your_webhook_secret", // Or use POLAR_WEBHOOK_SECRET env var
// server: "sandbox", // "sandbox" or "production", falls back to POLAR_SERVER env var
});
export const MAX_FREE_TODOS = 3;