fix(browser): don't redirect vitest in client environment (#10975)