fix: remove @sofa/core and @sofa/api deps from public-api to fix Vercel runtime compatibility

- Drop `@sofa/core` and `@sofa/api` from `apps/public-api` — importing workspace packages with DB/Node dependencies broke the Vercel edge runtime
- `fetchUserData` on Trakt and Simkl importers now returns raw `unknown` API responses; parsing is deferred to the self-hosted server
- Add `source` + `rawPayload` fields to `ParsePayloadInput`; `parsePayload` procedure now dispatches to `parseTraktPayload`/`parseSimklPayload` and returns full warnings + diagnostics
- Export `ProviderEnum` from `apps/public-api/src/importers/index.ts` instead of defining it inline in `app.ts`
This commit is contained in:
2026-03-23 12:48:04 -04:00
parent 9df1075040
commit cc8909d64e
19 changed files with 250 additions and 396 deletions
+10
View File
@@ -22,6 +22,16 @@ const config = {
destination: "https://github.com/jakejarvis/sofa/discussions",
permanent: false,
},
{
source: "/ios",
destination: "https://apps.apple.com/us/app/sofa-tv-movie-tracker/id6760432427",
permanent: false,
},
{
source: "/testflight",
destination: "https://testflight.apple.com/join/tjSddcaZ",
permanent: false,
}
];
},
async rewrites() {