From d61294c6bc8db29dac0c5664e5e0410bd2ac9c9b Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger Date: Mon, 16 Sep 2024 13:16:19 -0500 Subject: [PATCH] Fix staging asset regex --- nginx-pfe-staging-redirects.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx-pfe-staging-redirects.conf b/nginx-pfe-staging-redirects.conf index 188df5e..06f0f72 100644 --- a/nginx-pfe-staging-redirects.conf +++ b/nginx-pfe-staging-redirects.conf @@ -10,7 +10,7 @@ location ~* ^/projects/(?:_next|assets)/.+?$ { } # PFE assets -location ~ \.(js|css)$ { +location ~ ^/[\w-]+\.(js|css)$ { resolver 1.1.1.1; proxy_pass https://zooniversestatic.z13.web.core.windows.net/$proxy_path$request_uri; include /etc/nginx/az-proxy-headers.conf;