v1.0.8: Add NGINX location for vditor markdown editor assets

- Serve /dist/ from node_modules/vditor/dist to fix lute.min.js 502 error
- The vditor editor dynamically loads lute parser at /dist/js/lute/lute.min.js
This commit is contained in:
2025-12-29 18:08:57 -06:00
parent 3665e86a3d
commit 1884e355e5
2 changed files with 9 additions and 2 deletions

View File

@@ -51,6 +51,13 @@ http {
add_header Content-Type text/plain;
}
# Serve vditor static files (markdown editor library)
location /dist/ {
alias /app/code/node_modules/vditor/dist/;
expires 7d;
add_header Cache-Control "public, immutable";
}
# Proxy all requests to Blinko
location / {
proxy_pass http://blinko;