Proxy i18n locales dir for ingress (#17223)

This commit is contained in:
Josh Hawkins 2025-03-18 09:08:44 -05:00 committed by GitHub
parent dcaaae9a4c
commit 9f7ba51f39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -317,6 +317,7 @@ http {
sub_filter '"/BASE_PATH/dist/' '"$http_x_ingress_path/dist/';
sub_filter '"/BASE_PATH/js/' '"$http_x_ingress_path/js/';
sub_filter '"/BASE_PATH/assets/' '"$http_x_ingress_path/assets/';
sub_filter '"/BASE_PATH/locales/' '"$http_x_ingress_path/locales/';
sub_filter '"/BASE_PATH/monacoeditorwork/' '"$http_x_ingress_path/assets/';
sub_filter 'return"/BASE_PATH/"' 'return window.baseUrl';
sub_filter '<body>' '<body><script>window.baseUrl="$http_x_ingress_path/";</script>';