  We prove the convergence of a viscous approximation to an one dimensional
local mean field type planning problem with singular initial and terminal
measures. Then we use this result to give a rigorous proof to a
Freidlin-Ventchel-type Large Deviations Principle for the height of the $1+1$
KPZ equation.
