mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
- 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`
48 lines
1.1 KiB
JavaScript
48 lines
1.1 KiB
JavaScript
import { createMDX } from "fumadocs-mdx/next";
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
serverExternalPackages: ["@takumi-rs/image-response"],
|
|
reactStrictMode: true,
|
|
turbopack: {
|
|
// docs site is essentially self-contained from the rest of the monorepo
|
|
root: import.meta.dirname,
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: "/docs/api",
|
|
destination: "/docs/api/account/account.removeAvatar",
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: "/support",
|
|
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() {
|
|
return [
|
|
{
|
|
source: "/docs/:path*.mdx",
|
|
destination: "/llms.mdx/docs/:path*",
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|