@mishguru/turbine-driver-switch
v6.35.1
Published
Select which turbine driver to use at runtime.
Downloads
56
Keywords
Readme
Turbine Driver: Switch
Switch between different turbine drivers using an environment variable.
import createDriver from '@mishguru/turbine-driver-switch'
import createService from '@mishguru/turbine'
const service = createService({
name: 'myService',
driver: createDriver({
defaultDriver: '@mishguru/turbine-driver-fanservice'
})
})
...
TURBINE_DRIVER=@mishguru/turbine-driver-fanservice-polling npm start
TURBINE_DRIVER_ARGS_JSON='{"url":"amqp://localhost"}'