Failed to fetch dynamically imported module: https://images.domain.com/_app/immutable/nodes/20.f7234011.js - 500
TypeError: Failed to fetch dynamically imported module: https://images.domain.com/_app/immutable/nodes/20.f7234011.js
This happens even when in incognito mode, in a different browser (chrome, firefox, edge) and in incognito of all those browsers. This however doesn't happen when accessing via localhost:port. I've also tried deleting the cache in my browser but same problem; as is probably apparent since it's happening in incognito.
Any pointers on what I could be doing wrong? Here's my nginx config
server {
listen 80;
server_name images.mydomain.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
ssl_certificate /etc/letsencrypt/live/images.mydomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/images.mydomain.com/privkey.pem;
server_name images.mydomain.com;
client_max_body_size 50000M;
charset utf-8;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://<my_local_ip>:<port>;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
proxy_read_timeout 90s;
}
}
.