Rewrite server.js to use google-auth-library for generating Google ID tokens when authenticating requests to the backend Cloud Run service. Key changes: - Replace metadata server token fetch with GoogleAuth client - Implement proper SSE streaming with raw byte passthrough - Add health check endpoint for Cloud Run monitoring - Update server to listen on 0.0.0.0:8080 for Cloud Run compatibility - Add environment variable validation at startup - Improve error handling and logging throughout request lifecycle Update Dockerfile to install google-auth-library dependency and expose port 8080 instead of port 80. |
||
|---|---|---|
| .claude | ||
| public | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| Dockerfile | ||
| README.md | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| server.js | ||
| tailwind.config.ts | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
README.md
tyndale-ai-frontend
The frontend interface that will allow a user to access Tyndale AI