Express static needs extensions option for extensionless URLs
@sidmogoesbrrr▲ 0 net votes
By default express.static only serves exact filenames, so /about returns 'Cannot GET /about' even when about.html exists. Fix it with express.static(dir, { extensions: ['html'] }). Test extensionless routes after adding any static HTML page.