mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-26 00:12:28 +03:00
interface: address review comments and don't timeout channels
This commit is contained in:
parent
5ba1027a90
commit
1330ff6fe3
@ -72,8 +72,15 @@ if(urbitrc.URL) {
|
|||||||
...devServer,
|
...devServer,
|
||||||
index: '',
|
index: '',
|
||||||
proxy: {
|
proxy: {
|
||||||
context: () => true,
|
'/~landscape/js/index.js': {
|
||||||
target: urbitrc.URL
|
target: 'http://localhost:9000',
|
||||||
|
pathRewrite: (req, path) => '/index.js'
|
||||||
|
},
|
||||||
|
'**': {
|
||||||
|
target: urbitrc.URL,
|
||||||
|
// ensure proxy doesn't timeout channels
|
||||||
|
proxyTimeout: 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,5 +154,5 @@ class App extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default hot(App);
|
export default process.env.NODE_ENV === 'production' ? App : hot(App);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user