In this work, we present a systematic theoretical investigation of condensed-phase chemical reactions both inside and outside an optical cavity. Our primary goal is to shed light on the mechanisms underlying cavity-induced modification in the reaction rate. To achieve this, our study employs a doublewell description of molecular potential and utilizes an efficient, numerically exact open quantum system approach that combines the HEOM method with the MPS/TT formalism.