I started a project using lite-server. So far I only used an index.html file and client-side Javascript, but now I want to add server-side JavaScript functionality. How can I configure lite-server to use server.js for routing? Using just node the command would be
node server.js
However I start my server like this:
lite-server
How can I specify that for example if '/someurl' is requested, the url gets resolved using server.js? I assume this can be done in bs-config.json as module.export like
module.exports = {
server: {
middleware: {
// overrides the second middleware default with new settings
})
}
}
};
What might the right definition for my case?