mirror of
https://github.com/tale/headplane.git
synced 2026-08-19 01:16:18 +00:00
feat: reimplement integrations
This commit is contained in:
@@ -17,6 +17,8 @@ declare global {
|
||||
config_path?: string;
|
||||
config_strict?: boolean;
|
||||
};
|
||||
|
||||
let __integration_context: HeadplaneConfig['integration'];
|
||||
}
|
||||
|
||||
const envBool = type('string | undefined').pipe((v) => {
|
||||
@@ -131,6 +133,9 @@ export async function hp_loadConfig() {
|
||||
config_strict: config.headscale.config_strict,
|
||||
};
|
||||
|
||||
// @ts-expect-error: If we remove globalThis we get a runtime error
|
||||
globalThis.__integration_context = config.integration;
|
||||
|
||||
runtimeConfig = config;
|
||||
runtimeLock.release();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user