feat: reimplement integrations
This commit is contained in:
parent
f982217dd0
commit
25e6410c65
13 changed files with 400 additions and 238 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue