DEV Community

Discussion on: 404 page in Production doesn't work #gatsby

Collapse
 
aaayumi profile image
ayumi

It was fixed by docker configuration.

  location /
  {
    try_files $uri $uri/index.html =404;
    error_page 404 /404.html;
  }
Enter fullscreen mode Exit fullscreen mode
Collapse
 
fullstackchris profile image
Chris Frewin

This isn't a docker configuration, but an NGINX configuration. :)