Forem Creators and Builders 🌱

Discussion on: No route matches [GET] "/packs/js/base-1ecdedd1d603d087caec.chunk.js"

Collapse
 
manuel profile image
Manuel

Yeah i got the same issue using docker and trying to run as a production environment. I checked some issues posted on the forem github and the solution proposed because is production to use for example nginx to retrieve the static files. So i added the following on nginx config file for the site:

location ~ ^/(packs|uploads)/ {
      root /static/;
      gzip_static on;
      expires max;
      add_header Cache-Control public;
      try_files $uri =404;
      error_page 404 /404.html;
    }
Enter fullscreen mode Exit fullscreen mode