fix: availability of env variables
This commit is contained in:
parent
fa45559127
commit
f74c10d4aa
10 changed files with 78 additions and 10 deletions
13
src/config.ts
Normal file
13
src/config.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
export interface Config {
|
||||
server_address: string;
|
||||
imprint_link: string;
|
||||
privacy_link: string;
|
||||
custom_login_message: string;
|
||||
}
|
||||
|
||||
export const config: Config = {
|
||||
server_address: import.meta.env.VITE_SERVER_ADDRESS,
|
||||
imprint_link: import.meta.env.VITE_IMPRINT_LINK,
|
||||
privacy_link: import.meta.env.VITE_PRIVACY_LINK,
|
||||
custom_login_message: import.meta.env.VITE_CUSTOM_LOGIN_MESSAGE,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue