For , take an -dimensional irreducible projective variety with one singular point and form its product with . The Segre embedding makes the product projective, and its singular locus is the singular point times , of dimension . A quadric cone works in dimension at least two and a cuspidal cubic works in dimension one.
Codex Wiki