diff --git a/nginx-fem-staging-redirects.conf b/nginx-fem-staging-redirects.conf index 1d92eca..0a22223 100644 --- a/nginx-fem-staging-redirects.conf +++ b/nginx-fem-staging-redirects.conf @@ -14,6 +14,15 @@ location /mock { include /etc/nginx/proxy-security-headers.conf; } +# Mock route, fe-root app data and static files +location ~* ^/mock/(?:_next|assets)/.+?$ { + resolver 1.1.1.1; + proxy_pass $fe_root_uri; + proxy_set_header Host $fe_root_host; + + include /etc/nginx/proxy-security-headers.conf; +} + # Project app data and static files location ~* ^/projects/(?:_next|assets)/.+?$ { resolver 1.1.1.1;