Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

fix: respect externally set NEXTAUTH_URL in entrypoint.sh (#1272)

Willow Lopez59a4f6512a87
diff --git a/src/client/scripts/entrypoint.sh b/src/client/scripts/entrypoint.sh
index c0377ee1..32a18fd4 100644
--- a/src/client/scripts/entrypoint.sh
+++ b/src/client/scripts/entrypoint.sh
@@ -25,7 +25,10 @@ else
echo "WARNING: /etc/environment is not writable; NEXTAUTH_SECRET will not be persisted there." >&2
fi
-echo "NEXTAUTH_URL=http://localhost:${DOCKER_PORT:-3000}" >> /etc/environment
+if [ -z "${NEXTAUTH_URL}" ]; then
+ export NEXTAUTH_URL="http://localhost:${DOCKER_PORT:-3000}"
+fi
+echo "NEXTAUTH_URL=${NEXTAUTH_URL}" >> /etc/environment
echo "SQLITE_DATABASE_URL=${SQLITE_DATABASE_URL:-file:../data/data.db}" >> /etc/environment
echo "PATH=./node_modules/.bin:$PATH" >> /etc/environment