mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-30 23:28:45 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user