fix: define globals for context
This commit is contained in:
parent
296e4d489c
commit
e36352b7f3
3 changed files with 24 additions and 7 deletions
21
server/context/globals.ts
Normal file
21
server/context/globals.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import { HeadplaneConfig } from './parser';
|
||||
|
||||
declare global {
|
||||
const __cookie_context: {
|
||||
cookie_secret: string;
|
||||
cookie_secure: boolean;
|
||||
};
|
||||
|
||||
const __hs_context: {
|
||||
url: string;
|
||||
config_path?: string;
|
||||
config_strict?: boolean;
|
||||
};
|
||||
|
||||
const __oidc_context: {
|
||||
valid: boolean;
|
||||
secret: string;
|
||||
};
|
||||
|
||||
let __integration_context: HeadplaneConfig['integration'];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue