Skip to content

Minor change to the server file and wizard agent#42

Merged
PVeazie951 merged 1 commit intomainfrom
lorenc-cicd
Dec 16, 2025
Merged

Minor change to the server file and wizard agent#42
PVeazie951 merged 1 commit intomainfrom
lorenc-cicd

Conversation

@lorencDedaj
Copy link
Copy Markdown
Contributor

This PR fixes a production startup issue where the backend container crashed on boot in Cloud Run.

What changed
• Removed eager OpenAI client initialization at module import time
• Added lazy OpenAI client creation so the server can start without OPENAI_API_KEY
• Ensured the backend always binds to process.env.PORT and 0.0.0.0

Why
• Cloud Run requires containers to start and listen on the provided PORT
• Optional dependencies (OpenAI) should not crash the entire service at startup

@PVeazie951 PVeazie951 merged commit efbe0af into main Dec 16, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants