let shouldeRedirect=false
try {
 const response = await fetch(...)

// 성공시let shouldeRedirect = true
} catch(error){
  console.log(error)
}

if(shouldeRedirect){
  redirect('/home)
}