mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
more work on attachments
* fix frontend env usage
This commit is contained in:
@@ -30,9 +30,9 @@ export class StaticModule implements OnModuleInit {
|
||||
const windowVar = '<!--window-config-->';
|
||||
|
||||
const configString = {
|
||||
env: this.environmentService.getEnv(),
|
||||
appUrl: this.environmentService.getAppUrl(),
|
||||
isCloud: this.environmentService.isCloud(),
|
||||
ENV: this.environmentService.getEnv(),
|
||||
APP_URL: this.environmentService.getAppUrl(),
|
||||
IS_CLOUD: this.environmentService.isCloud(),
|
||||
};
|
||||
|
||||
const windowScriptContent = `<script>window.CONFIG=${JSON.stringify(configString)};</script>`;
|
||||
|
||||
Reference in New Issue
Block a user