mirror of
https://github.com/outline/outline.git
synced 2025-12-21 10:39:41 -06:00
* fix: public env vars using decorator * fix: relocate * fix: use env.public * fix: register public env vars across plugins * fix: test * fix: tsc * fix: mark remaining ones as public * fix: move oidc ones to plugin * fix: prevent overwrite * fix: review
16 lines
301 B
TypeScript
16 lines
301 B
TypeScript
declare global {
|
|
interface Window {
|
|
env: Record<string, any>;
|
|
}
|
|
}
|
|
|
|
const env = window.env;
|
|
|
|
if (!env) {
|
|
throw new Error(
|
|
"Config could not be be parsed. \nSee: https://docs.getoutline.com/s/hosting/doc/troubleshooting-HXckrzCqDJ#h-config-could-not-be-parsed"
|
|
);
|
|
}
|
|
|
|
export default env;
|