7 lines
209 B
JavaScript
7 lines
209 B
JavaScript
|
export function isServiceEnabled (service) {
|
||
|
if (process.env.NODE_ENV !== 'development') return true
|
||
|
|
||
|
const services = (process.env.COMPOSE_PROFILES ?? '').split(',')
|
||
|
return services.includes(service)
|
||
|
}
|