diff --git a/.gitignore b/.gitignore index 7dd17be..f238711 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ data/ .env .DS_Store *.log +.qoder/ diff --git a/scripts/start-server.sh b/scripts/start-server.sh index 97815a2..77687f8 100755 --- a/scripts/start-server.sh +++ b/scripts/start-server.sh @@ -4,8 +4,11 @@ set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "${ROOT_DIR}" -export PATH="/home/gahow/.nvm/versions/node/v24.13.1/bin:$PATH" +export PATH="/home/gahow/.local/bin:/home/gahow/.nvm/versions/node/v24.13.1/bin:$PATH" export HOST="127.0.0.1" export PORT="${PORT:-8787}" +# Node's built-in fetch does not read HTTPS_PROXY unless this opt-in is enabled. +# The configured Nasdaq/Yahoo data sources require the host's local proxy. +export NODE_USE_ENV_PROXY="${NODE_USE_ENV_PROXY:-1}" exec npx tsx src/server/index.ts diff --git a/scripts/start-vite.sh b/scripts/start-vite.sh index 657cbd0..8e72090 100755 --- a/scripts/start-vite.sh +++ b/scripts/start-vite.sh @@ -6,4 +6,6 @@ cd "${ROOT_DIR}" export PATH="/home/gahow/.nvm/versions/node/v24.13.1/bin:$PATH" -exec npx vite --host 0.0.0.0 --port 5174 +# The public HTTPS entrypoint is nginx on :5443. Keep Vite as a localhost-only +# upstream so the development server is not exposed as a second LAN entrypoint. +exec npx vite --host 127.0.0.1 --port 5174