Skip to content

Commit

Permalink
chore: configureAssets
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Dec 17, 2024
1 parent 7106d16 commit 769aa36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/meteor/app/assets/server/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,6 @@ void (async () => {
}
})();

settings.watchByRegex(/^Assets_/, (key, value) => RocketChatAssets.processAsset(key, value));

Meteor.startup(() => {
setTimeout(() => {
process.emit('message', {
Expand Down
2 changes: 2 additions & 0 deletions apps/meteor/server/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { configureIRC } from './startup/configureIRC';
import { configureFederation } from './startup/settings';
import { startLicense } from '../ee/app/license/server/startup';
import { registerEEBroker } from '../ee/server';
import { configureAssets } from './startup/configureAssets';
import { configureSMTP } from './startup/configureSMTP';
import { configurePushNotifications } from './startup/pushNotification';
import { settings } from '../app/settings/server';
Expand All @@ -38,6 +39,7 @@ await startLicense();
await Promise.all([configureLoginServices(), startFederationService()]);

await Promise.all([
configureAssets(settings),
configurePushNotifications(settings),
configureBoilerplate(settings),
configureDirectReply(settings),
Expand Down
6 changes: 6 additions & 0 deletions apps/meteor/server/startup/configureAssets.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { RocketChatAssets } from '../../app/assets/server';
import type { ICachedSettings } from '../../app/settings/server/CachedSettings';

export async function configureAssets(settings: ICachedSettings): Promise<void> {
settings.watchByRegex(/^Assets_/, (key, value) => RocketChatAssets.processAsset(key, value));
}

0 comments on commit 769aa36

Please sign in to comment.