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