diff --git a/deploy-server.sh b/deploy-server.sh index cfa201f..7598485 100644 --- a/deploy-server.sh +++ b/deploy-server.sh @@ -126,6 +126,13 @@ server { root ${REMOTE_PATH}; index index.html; + # Serve reports directory files with proper MIME types + location /reports/ { + try_files \$uri =404; + add_header Content-Type application/json; + add_header Access-Control-Allow-Origin *; + } + # Serve static files directly location / { try_files \$uri \$uri/ /index.html;