mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-26 13:45:30 +03:00
refactor: do not poll on web deploy
This commit is contained in:
parent
271011b131
commit
1ea650e91d
@ -310,7 +310,7 @@ app.prepare().then(async () => {
|
||||
});
|
||||
|
||||
server.get('/', async (req, res) => {
|
||||
if (production || !state.token) {
|
||||
if (!state.token) {
|
||||
return res.redirect('/system');
|
||||
}
|
||||
|
||||
@ -332,6 +332,8 @@ app.prepare().then(async () => {
|
||||
console.log(`[ prototype ] client: http://localhost:${port}`);
|
||||
console.log(`[ prototype ] constants:`, Constants);
|
||||
|
||||
await setIntervalViewerUpdatesUnsafe();
|
||||
if (!production) {
|
||||
await setIntervalViewerUpdatesUnsafe();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user