This is the right config,
express.enabled: true, studio.enabled: false
However, in v2 there is still login screen wired, you would need to update jsreport.
Or you can overwrite the route in your server.js
file
const jsreport = require('jsreport')()
if (process.env.JSREPORT_CLI) {
// export jsreport instance to make it possible to use jsreport-cli
module.exports = jsreport
} else {
jsreport.init().then(() => {
reporter.on('after-express-static-configure', (app) => {
app.get('/', (req, res) => {
res.status(404).send('Not Found')
})
})
// running
}).catch((e) => {
// error during startup
console.error(e.stack)
process.exit(1)
})
}