fix(blinko): copy vditor editor assets to public dir

Blinko's frontend passes cdn:"" to the Vditor editor, expecting its
runtime assets (lute.min.js, highlight.js CSS, etc.) to be served
locally at /dist/js/... and /dist/css/...

In the Docker image these files exist in the container, but the
baremetal install/update never copies them from node_modules to the
public directory, resulting in 404s and a completely missing editor UI.

Copy vditor's dist/{js,css,images} into dist/public/dist/ after
build:web so they are served by Express's static middleware.
This commit is contained in:
Jon Rogers
2026-06-04 01:38:30 -04:00
parent 9668dc954f
commit 68a9db2e3b
2 changed files with 4 additions and 0 deletions

View File

@@ -50,6 +50,8 @@ function update_script() {
cd /opt/blinko
$STD bun install
$STD bun run build:web
mkdir -p /opt/blinko/dist/public/dist
cp -r /opt/blinko/node_modules/vditor/dist/{js,css,images} /opt/blinko/dist/public/dist/
$STD bun run build:seed
$STD bun run prisma:generate
$STD bun run prisma:migrate:deploy

View File

@@ -46,6 +46,8 @@ NEXT_PUBLIC_BASE_URL=http://${LOCAL_IP}:1111
EOF
$STD bun install
$STD bun run build:web
mkdir -p /opt/blinko/dist/public/dist
cp -r /opt/blinko/node_modules/vditor/dist/{js,css,images} /opt/blinko/dist/public/dist/
$STD bun run build:seed
$STD bun run prisma:generate
$STD bun run prisma:migrate:deploy