mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
Previously the AI proxy baseURL was chosen based on NODE_ENV alone, which caused dev requests to loop back to the local proxy and forward "Bearer FORWARD_TO_PRODUCTION" upstream. Switch on the env var instead and use NEXT_PUBLIC_STACK_API_URL as the default base.