Files
mlc-ai--web-llm/scripts/serve_mlc_llm_dist.sh
T
wehub-resource-sync f73e710e38
Build / build (push) Has been cancelled
Tests / test (push) Has been cancelled
Build site and push to gh-pages / Build site (push) Has been cancelled
Linter / lint (push) Has been cancelled
Security / dependency-review (push) Has been cancelled
Security / npm-audit (push) Has been cancelled
Security / codeql (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:42:51 +08:00

16 lines
398 B
Bash
Executable File

#!/bin/bash
# This file prepares all the necessary dependencies for the web build.
set -euxo pipefail
npm --version
MLC_LLM_HOME_SET="${MLC_LLM_HOME:-}"
if [[ -z ${MLC_LLM_HOME_SET} ]]; then
echo "Do not find MLC_LLM_HOME env variable, need to set this to work".
fi
cd ${MLC_LLM_HOME}/dist
echo "Serving ${MLC_LLM_HOME}/dist for local debugging purposes"
npx http-server -p 8000 --cors
cd -