mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-14 20:16:38 +00:00
11 lines
466 B
TypeScript
11 lines
466 B
TypeScript
import { build } from "@server/build";
|
|
|
|
// Import both modules
|
|
import * as traefikModule from "./getTraefikConfig";
|
|
import * as privateTraefikModule from "./privateGetTraefikConfig";
|
|
|
|
// Conditionally export Traefik configuration implementation based on build type
|
|
const traefikImplementation = build === "oss" ? traefikModule : privateTraefikModule;
|
|
|
|
// Re-export all items from the selected implementation
|
|
export const { getTraefikConfig } = traefikImplementation; |