const browserSyncConfig = {
server: {
baseDir: "./dev/client",
middleware: [
function (req, res, next) { // Allow CORS
res.setHeader('Access-Control-Allow-Origin', '*');
next();
},
historyApiFallback() //for SPA application
]
},
host: 'localhost',
port: 3000,
notify: false,
};