interface: address review comments and don't timeout channels

This commit is contained in:
Liam Fitzgerald 2020-07-16 09:32:11 +10:00
parent 5ba1027a90
commit 1330ff6fe3
2 changed files with 10 additions and 3 deletions

View File

@ -72,8 +72,15 @@ if(urbitrc.URL) {
...devServer,
index: '',
proxy: {
context: () => true,
target: urbitrc.URL
'/~landscape/js/index.js': {
target: 'http://localhost:9000',
pathRewrite: (req, path) => '/index.js'
},
'**': {
target: urbitrc.URL,
// ensure proxy doesn't timeout channels
proxyTimeout: 0
}
}
}
}

View File

@ -154,5 +154,5 @@ class App extends React.Component {
}
}
export default hot(App);
export default process.env.NODE_ENV === 'production' ? App : hot(App);