a tool for shared writing and social publishing

only push inngest event in production

+5 -4
+5 -4
app/api/oauth/[route]/route.ts
··· 89 89 // Trigger migration if identity needs it 90 90 const metadata = identity?.metadata as Record<string, unknown> | null; 91 91 if (metadata?.needsStandardSiteMigration) { 92 - await inngest.send({ 93 - name: "user/migrate-to-standard", 94 - data: { did: session.did }, 95 - }); 92 + if (process.env.NODE_ENV === "production") 93 + await inngest.send({ 94 + name: "user/migrate-to-standard", 95 + data: { did: session.did }, 96 + }); 96 97 } 97 98 98 99 let { data: token } = await supabaseServerClient