refactor(enterprise): consolidate LICENSE_KEY_URL handling and improve license validation logic

- Moved LICENSE_KEY_URL definition to a centralized location for better maintainability.
- Updated license validation function to utilize the new LICENSE_KEY_URL import, enhancing clarity and consistency in API calls.
This commit is contained in:
Mauricio Siu
2026-02-05 02:15:59 -06:00
parent 47470e2343
commit dfcb422294
2 changed files with 12 additions and 12 deletions
+1 -3
View File
@@ -1,6 +1,4 @@
import { getPublicIpWithFallback } from "@dokploy/server";
const LICENSE_KEY_URL = process.env.LICENSE_KEY_URL || "http://localhost:4002";
import { getPublicIpWithFallback, LICENSE_KEY_URL } from "@dokploy/server";
export const validateLicenseKey = async (licenseKey: string) => {
try {