You can use the following code to disable redo/undo tools
WebViewer(...)
.then(instance => {
instance.disableElements(['redoButton','undoButton'])
instance.hotkeys.off(instance.hotkeys.Keys.CTRL_Z)
instance.hotkeys.off(instance.hotkeys.Keys.CTRL_Y)
});