Skip to content

Commit 74aec79

Browse files
#RI-3656-update static server for custom plugins
1 parent 7250c03 commit 74aec79

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

redisinsight/api/src/modules/statics-management/statics-management.module.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,20 @@ const CONTENT_CONFIG = config.get('content');
4141
fallthrough: false,
4242
},
4343
}),
44+
ServeStaticModule.forRoot({
45+
serveRoot: SERVER_CONFIG.customPluginsUri,
46+
rootPath: join(PATH_CONFIG.customPlugins),
47+
serveStaticOptions: {
48+
fallthrough: false,
49+
},
50+
}),
51+
ServeStaticModule.forRoot({
52+
serveRoot: SERVER_CONFIG.pluginsAssetsUri,
53+
rootPath: join(PATH_CONFIG.pluginsAssets),
54+
serveStaticOptions: {
55+
fallthrough: false,
56+
},
57+
}),
4458
],
4559
providers: [
4660
{

0 commit comments

Comments
 (0)