diff --git a/package.json b/package.json index 841d83df692..e3100fba285 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,7 @@ "node": ">=16.8.0 <18.0.0 || >=18.11", "npm": "please-use-pnpm", "yarn": "please-use-pnpm", - "pnpm": ">=8.6.12" + "pnpm": ">=9.0.5" }, "packageManager": "pnpm@9.0.5", "pnpm": { diff --git a/packages/insights/src/db/query.ts b/packages/insights/src/db/query.ts index 98b220a4097..d51818d107e 100644 --- a/packages/insights/src/db/query.ts +++ b/packages/insights/src/db/query.ts @@ -47,7 +47,7 @@ export async function getEdges( .from(edgeTable) .where(where) .groupBy(edgeTable.from, edgeTable.to) - .limit(limit || 100_000); // TODO: The 100_000 limit is due to Turso serialization format not being efficient, upgrade this once Turso is fixed. + .limit(limit || 10_000); // TODO: The 10_000 limit is due to Turso serialization format not being efficient, upgrade this once Turso is fixed. const rows = await query.all(); return rows.map((e) => ({ from: e.from, diff --git a/packages/insights/src/routes/plugin@auth.ts b/packages/insights/src/routes/plugin@auth.ts index 95dbf1a5d76..417e1ff5014 100644 --- a/packages/insights/src/routes/plugin@auth.ts +++ b/packages/insights/src/routes/plugin@auth.ts @@ -6,6 +6,7 @@ export const { onRequest, useAuthSession, useAuthSignin, useAuthSignout } = serv ({ env }) => ({ secret: env.get('PRIVATE_AUTH_SECRET'), trustHost: true, + basePath: env.get('PRIVATE_AUTH_BASE_API'), providers: [ GitHub({ clientId: env.get('PRIVATE_GITHUB_ID')!,