Async config file (#682)
* initial * only donwload config once * formatting * update sample config * sentry * refactor load state * fix build yaml * Upper case enums * change how defaults work. review fixes * abstract initialization * copyright * gitignore styleing * refactor initialization * use dafualt as fallback * internalInstance rename * review * remove acidentally added posthog file * DSN rename * update Copyright * remove olm from the initializer Co-authored-by: Timo K <timok@element.io>
This commit is contained in:
parent
806a9032e1
commit
78a313c373
10 changed files with 293 additions and 88 deletions
19
src/config/ConfigOptions.ts
Normal file
19
src/config/ConfigOptions.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
export interface IConfigOptions {
|
||||
posthog?: {
|
||||
api_key: string;
|
||||
};
|
||||
sentry?: {
|
||||
DSN: string;
|
||||
environment: string;
|
||||
};
|
||||
rageshake?: {
|
||||
submit_url: string;
|
||||
};
|
||||
}
|
||||
|
||||
export const DEFAULT_CONFIG: IConfigOptions = {
|
||||
sentry: { DSN: "", environment: "production" },
|
||||
rageshake: {
|
||||
submit_url: "https://element.io/bugreports/submit",
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue