I have a project in which I use app Global Prefix to customize the service path depending of a machine environment variable. I have found out that ServeStaticModule ignores the Global Prefix to server the statics files. I know you can use serveRoot to prefix the path but I can not load at that module initialization time the environment variable.
Is there any way to take the GlobalPrefix or the value of the environment variable to also serve the statics files with the same path?
imports: [
ServeStaticModule.forRoot({
rootPath: join(__dirname, '..', '..', 'public'),
serveRoot: THEGLOBALPREFIXVALUE?
}),```
Thank you