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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user