mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
14 lines
556 B
TypeScript
14 lines
556 B
TypeScript
import { build } from "@server/build";
|
|
|
|
// Import both modules
|
|
import * as certificateModule from "./certificates";
|
|
import * as privateCertificateModule from "./privateCertificates";
|
|
|
|
// Conditionally export Remote Certificates implementation based on build type
|
|
const remoteCertificatesImplementation = build === "oss" ? certificateModule : privateCertificateModule;
|
|
|
|
// Re-export all items from the selected implementation
|
|
export const {
|
|
getValidCertificatesForDomains,
|
|
getValidCertificatesForDomainsHybrid
|
|
} = remoteCertificatesImplementation; |