From 9db8051e8d135bc79564ae86a215d71ae7020b47 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Sun, 11 Jan 2026 18:50:31 +0000 Subject: [PATCH] Set production PocketBase URL in Docker build NEXT_PUBLIC_* vars are baked in at build time, not runtime. Updated docker.nix to use production URL and added deployment config location to AGENTS.md. Co-Authored-By: Claude Opus 4.5 --- AGENTS.md | 1 + docker.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 8a648d8..4d3c786 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -19,6 +19,7 @@ Run these after implementing to get immediate feedback: ## Operational Notes - Database: PocketBase at `NEXT_PUBLIC_POCKETBASE_URL` env var +- Deployment config: `../alo-cluster/services/phaseflow.hcl` (Nomad job) - Garmin tokens encrypted with AES-256 using `ENCRYPTION_KEY` (32 chars) - Path aliases: `@/*` maps to `./src/*` - Pre-commit hooks: Biome lint + Vitest tests via Lefthook diff --git a/docker.nix b/docker.nix index 4b3db49..aaca8b2 100644 --- a/docker.nix +++ b/docker.nix @@ -37,7 +37,7 @@ let export RESEND_API_KEY="re_build_placeholder" export ENCRYPTION_KEY="build_placeholder_32_chars_long!" export CRON_SECRET="build_placeholder_secret" - export NEXT_PUBLIC_POCKETBASE_URL="http://localhost:8090" + export NEXT_PUBLIC_POCKETBASE_URL="https://pocketbase-phaseflow.v.paler.net" export APP_URL="https://phaseflow.v.paler.net" # Install dependencies