404.html not working

I have my 404.html in my public/ folder and yet whenever I put in a bad URL I get the Gitlab 404 page, not my own.