From d7ae711efa2523247fec81e3d1f51b84679be261 Mon Sep 17 00:00:00 2001 From: Ali Ibrahim Jr <48456829+IBJunior@users.noreply.github.com> Date: Wed, 16 Sep 2026 17:42:38 +0200 Subject: [PATCH] chore: remove outdated demo script --- .env.example | 10 +++++++++- .gitignore | 2 -- CLAUDE.md | 2 -- package.json | 3 +-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.env.example b/.env.example index be699b8..ec2aae7 100644 --- a/.env.example +++ b/.env.example @@ -18,7 +18,15 @@ S3_PROD_CONSOLE_PORT=9103 # Production: REQUIRED - set to your public URL (e.g., https://myapp.com) NEXT_PUBLIC_APP_URL=http://localhost:3100 -NEXT_PUBLIC_API_BASE_URL=http://localhost:3100/api/agent +# Base URL the BROWSER uses for every agent API call — config, threads, history, chat and stream. +# Leave unset: it falls back to the relative `/api/agent`, which always targets whatever origin +# served the page, so it stays correct on any port. +# +# An absolute URL here overrides that for the WHOLE app, and a stale port then silently points one +# running app at ANOTHER app's database — e.g. a dev server on 9200 reading production on 3100. +# Only set it when the API genuinely lives on a different origin than the UI. +# NEXT_PUBLIC_API_BASE_URL=http://localhost:3100/api/agent + POSTGRES_USER=user POSTGRES_PASSWORD=password diff --git a/.gitignore b/.gitignore index db1867a..0df23bf 100644 --- a/.gitignore +++ b/.gitignore @@ -36,8 +36,6 @@ yarn-error.log* .env.development.local .env.test.local .env.production.local -# isolated env for AI-run live tests (holds secrets; never commit) -.env.ai-test # env for eval runs (holds an API key; never commit) — see .env.eval.example .env.eval # Eval run artifacts — ignore the generated JSON by pattern, not the whole directory, so the diff --git a/CLAUDE.md b/CLAUDE.md index 523ced0..d7390b0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -66,8 +66,6 @@ deletion is immediate and has no undo. **Live-test against the dev stack** (`pnpm dev` → `mydb_dev`), never against `--profile full`. Note `pnpm dev` hardcodes `-p 3100`, which the production `web` container normally occupies — run -`npx next dev --turbopack -p 3101` rather than stopping production. (`mydb_test`, `.env.ai-test` and -`pnpm demo` are dead pre-Docker leftovers; don't revive them.) ### Backing up the production database diff --git a/package.json b/package.json index 7a34aeb..32bee0e 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,7 @@ "db:push": "drizzle-kit push", "db:pull": "drizzle-kit pull", "db:studio": "drizzle-kit studio", - "db:seed": "tsx src/lib/database/seed.ts", - "demo": "dotenv -e .env.ai-test -- next dev --turbopack -p 3200" + "db:seed": "tsx src/lib/database/seed.ts" }, "dependencies": { "@asteasolutions/zod-to-openapi": "^8.5.0",