Updated dev mode script to serve on static URL

no refs

- adds static serve path for portal dev mode script same as start mode
This commit is contained in:
Rishabh 2021-06-11 19:55:27 +05:30
parent 06817969bb
commit a4afeba183

View File

@ -189,7 +189,20 @@ function watchFiles() {
function startDevServer() {
const server = http.createServer((request, response) => {
return handler(request, response);
return handler(request, response, {
rewrites: [
{source: '/portal', destination: 'umd/portal.min.js'}
],
headers: [
{
source: '**',
headers: [{
key: 'Cache-Control',
value: 'no-cache'
}]
}
]
});
});
server.listen(port, () => {