Re: Njs - r.variables does not contain variables declared by js_var

2022-04-06 Thread Dmitry Volyntsev
Hi, See the following reply on Github https://github.com/nginx/njs/issues/460#issuecomment-1015642606 On 06.04.2022 00:02, 王明君 wrote: Hi, sorry to bother again ~ I was trying to access variables declared using js_var but failed. Confused why is that. This is a test demo, but actually i have

Njs - r.variables does not contain variables declared by js_var

2022-04-06 Thread 王明君
Hi, sorry to bother again ~ I was trying to access variables declared using js_var but failed. Confused why is that. This is a test demo, but actually i have a massive nginx config file that i want to minify using njs, and under which circumstance i need the js script to have access to variab