I've got some redirect logic in place in an outermost component which wraps every page. I currently have it disabled if I'm not on the production URL. I don't want it active while I'm in the editor, but I do want it active while I'm previewing the branch. Is there a more elegant way to check if I'm in the editor than checking if the url starts with https://app.nordcraft.com/projects/?