devServer: {
contentBase: path.resolve(__dirname, `./${folder}`),
compress: true,
port: 9000,
host: '0.0.0.0',
open: false,
historyApiFallback: true,
proxy: [
{
context: ['/api', '/dash'],
target: 'https://${systemUrl}/',
changeOrigin: true,
secure: true
},
{
context: ['/websocket'],
target: `wss://${systemUrl}/websocket/`,
changeOrigin: true,
ws: true
}
]
},
return {
...state,
articles: state.articles.map(({comments, ...o}) => ({
...o,
comments: comments.filter((c) => c.id !== action.id)
}))
};