fix: start config code setting update

This commit is contained in:
npc0-hue
2026-07-23 17:58:07 +08:00
parent 8cc741ba19
commit 215f6e68c5
5 changed files with 10 additions and 4 deletions
@@ -0,0 +1,2 @@
schema: spec-driven
created: 2026-07-23
+4
View File
@@ -0,0 +1,4 @@
VITE_PLATFORM_API_BASE_URL=/api/v1
PLATFORM_API_PROXY=http://0.0.0.0:8080
VITE_ENABLE_LOCAL_AUTH_FALLBACK=true
+1 -1
View File
@@ -1,4 +1,4 @@
VITE_PLATFORM_API_BASE_URL=/api/v1
PLATFORM_API_PROXY=http://127.0.0.1:8080
PLATFORM_API_PROXY=http://0.0.0.0:8080
VITE_ENABLE_LOCAL_AUTH_FALLBACK=true
+2 -2
View File
@@ -29,7 +29,7 @@ export PLATFORM_AI_PROVIDER_MODE="${PLATFORM_AI_PROVIDER_MODE:-mock}"
export RUN_SOURCE_DIR="${RUN_SOURCE_DIR:-${RUN_REPO_DIR:-$LOCAL_DEBUG_ROOT_DIR/run}}"
export RUN_REPO_DIR="$RUN_SOURCE_DIR"
export RUN_MODE="${RUN_MODE:-worker}"
export RUN_PLATFORM_URL="${RUN_PLATFORM_URL:-http://127.0.0.1:$LOCAL_DEBUG_PLATFORM_PORT}"
export RUN_PLATFORM_URL="${RUN_PLATFORM_URL:-https://scum.npc0.com:$LOCAL_DEBUG_PLATFORM_PORT}"
export RUN_ENDPOINT_ID="${RUN_ENDPOINT_ID:-run-local-debug}"
export RUN_DISPLAY_NAME="${RUN_DISPLAY_NAME:-Local Debug Run}"
export RUN_VERSION="${RUN_VERSION:-0.1.0-local-debug}"
@@ -53,7 +53,7 @@ local_debug_platform_url() {
}
local_debug_web_url() {
printf 'http://127.0.0.1:%s' "$LOCAL_DEBUG_WEB_PORT"
printf 'http://0.0.0.0:%s' "$LOCAL_DEBUG_WEB_PORT"
}
local_debug_plugin_source_dir() {
+1 -1
View File
@@ -184,7 +184,7 @@ start_service platform_web "$ROOT_DIR" env \
PLATFORM_API_PROXY="$PLATFORM_API_PROXY" \
VITE_PLATFORM_API_BASE_URL="$VITE_PLATFORM_API_BASE_URL" \
VITE_ENABLE_LOCAL_AUTH_FALLBACK="$VITE_ENABLE_LOCAL_AUTH_FALLBACK" \
npm --prefix platform_web run dev -- --port "$LOCAL_DEBUG_WEB_PORT"
npm --prefix platform_web run dev -- --host "0.0.0.0" --port "$LOCAL_DEBUG_WEB_PORT"
wait_for_url platform_web "$(local_debug_web_url)"