fix: Migrate API to Turso, fix Vercel deployment, fix app TS errors#10
Merged
fix: Migrate API to Turso, fix Vercel deployment, fix app TS errors#10
Conversation
API changes: - Migrate from MongoDB to Turso (@libsql/client) - Add SQL schema for users and receipts tables - Export serverless handler for Vercel deployment - Fix vercel.json (version 2, remove invalid env block) - Add missing deps: @fastify/rate-limit, fastify-plugin - Make Swagger host dynamic (VERCEL_URL or localhost) - Fix security.ts getResponseTime → elapsedTime (Fastify 5) App changes: - Fix broken import paths in App.tsx (./app/ → ./) - Fix non-existent selectUser import in UsersScreen - Fix user.email reference in BeaconsScreen (not on User type) - Fix thumbColor → thumbTintColor in CreateUserScreen - Fix missing commonStyles.loadingText in StatsScreen - Fix headers type mismatch in api service - Rename mongodb.service → api.service, MongoDBService → ApiService - Add .env.example Co-Authored-By: Oz <oz-agent@warp.dev>
This was referenced Mar 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prepares the API for Vercel serverless deployment and fixes all TypeScript build errors in the mobile app.
API changes
@libsql/client) — edge-native, no connection pool issuesusersandreceiptstables (auto-created on first connect)@vercel/node(dual-mode: serverless + local dev)vercel.json— version2, remove invalidenvblock@fastify/rate-limit,fastify-pluginVERCEL_URLorlocalhost)security.ts—getResponseTime()→elapsedTime(Fastify 5)App changes
App.tsx(./app/→./)selectUserimport inUsersScreenuser.email→ city/country display inBeaconsScreenthumbColor→thumbTintColorinCreateUserScreenStatsScreenmongodb.service→api.servicethroughout.env.exampleRequired Vercel env vars
TURSO_DATABASE_URLTURSO_AUTH_TOKENAPI_KEYCo-Authored-By: Oz oz-agent@warp.dev