]> git.kaiwu.me - njs.git/commitdiff
Update README.md
authorGuillaume Rossolini <g.rossolini@gmail.com>
Wed, 29 Jul 2026 12:27:57 +0000 (12:27 +0000)
committerDmitry Volyntsev <xeioexception@gmail.com>
Tue, 11 Aug 2026 20:45:10 +0000 (13:45 -0700)
Fixed js_import example; filenames didn't match

README.md

index 98307d2c692ecbecabda60637e02cf7c0851bf97..f380e4601f7f11991bbd379a9706ebf7b2d27d36 100644 (file)
--- a/README.md
+++ b/README.md
@@ -186,7 +186,7 @@ http {
   js_path "/etc/nginx/njs/";
 
   # Import our JavaScript file into the variable "main"
-  js_import main from http/hello.js;
+  js_import main from example.js;
 
   server {
     listen 80;