From af97ab22ee37a950bc411a0d042cd200d1ee56fc Mon Sep 17 00:00:00 2001 From: L-Ryland <41134883+L-Ryland@users.noreply.github.com> Date: Wed, 8 Apr 2026 01:34:19 +0800 Subject: [PATCH] fix(web): update proxy target for containerized development (#334) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(web): update proxy target for containerized development Use internal Docker network target (http://server:8080) instead of host-published ports (host.docker.internal) to improve containerized dev environment reliability. Also add mise.local.toml to .gitignore for local tool configuration. * Remove comments regarding Docker network configuration Removed comments about containerized development and proxy target. --------- Co-authored-by: 晨苒 <16112591+chen-ran@users.noreply.github.com> --- .gitignore | 1 + devenv/docker-compose.yml | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index cc0dd760..d15e6eea 100644 --- a/.gitignore +++ b/.gitignore @@ -63,6 +63,7 @@ lerna-debug.log* .env.development.local .env.test.local .env.production.local +mise.local.toml # IDE .idea/ diff --git a/devenv/docker-compose.yml b/devenv/docker-compose.yml index 240f8969..a14c9394 100644 --- a/devenv/docker-compose.yml +++ b/devenv/docker-compose.yml @@ -117,9 +117,7 @@ services: command: ["pnpm", "exec", "vite", "--host", "0.0.0.0", "--port", "8082"] environment: MEMOH_CONFIG_PATH: /workspace/devenv/app.dev.toml - MEMOH_WEB_PROXY_TARGET: http://host.docker.internal:18080 - extra_hosts: - - "host.docker.internal:host-gateway" + MEMOH_WEB_PROXY_TARGET: http://server:8080 volumes: - ..:/workspace - node_modules:/workspace/node_modules