Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down