You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: improve code quality with proper error handling and types (#491)
* chore: improve code quality with proper error handling and types
- Add console.warn to empty catch blocks in model.ts and app-sidebar.tsx
- Replace any[] with ChatFileAttachment type in pending-message.ts
- Replace any[] with ChatFileAttachment type in use-persistent-chat.ts
- Add OpenRouterModel interface for API response typing in model.ts
- Use proper Convex Id<"chats"> type in app-sidebar.tsx
- Remove unsafe 'as unknown as' type casts
* fix(deploy): run convex codegen before web build on Railway
The Railway build was failing because @server/convex/_generated/* imports
couldn't resolve - the Convex generated files don't exist during web-only builds.
Fix by running 'convex codegen' in the server directory first to generate
the required type files before building the web app.
0 commit comments