Structural and magnetic properties of a quasi-one-dimensional spin-1/2 compound NaVOPO4 are explored by x-ray diffraction, magnetic susceptibility, high-field magnetization, specific heat, electron spin resonance, and 31P nuclear magnetic resonance measurements, as well as complementary \textit{ab initio} calculations. Whereas magnetic susceptibility of NaVOPO4 may be compatible with the gapless uniform spin chain model, detailed examination of the crystal structure reveals a weak alternation of the exchange couplings with the alternation ratio α≃0.98 and the ensuing zero-field spin gap Δ0/kB≃2.4~K directly probed by field-dependent magnetization measurements. No long-range order is observed down to 50\,mK in zero field. However, applied fields above the critical field Hc1≃1.6\,T give rise to a magnetic ordering transition with the phase boundary TN∝(H−Hc1)ϕ1, where ϕ≃1.8 is close to the value expected for Bose-Einstein condensation of triplons. With its weak alternation of the exchange couplings and small spin gap, NaVOPO4 lies close to the quantum critical point.