You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { serve } from 'inngest/next';
import { inngest } from '@/utils/inngest/client';
import { getContractData } from '@/utils/inngest/functions';
// Create an API that serves zero functions
export const { GET, POST, PUT } = serve({
client: inngest,
functions: [
getContractData,
/* your functions will be passed here later! */
],
});
When I ping localhost:3000/api/inngest, I get this response
{"message":"Inngest endpoint configured correctly.","hasEventKey":false,"hasSigningKey":false,"functionsFound":1,"mode":{"type":"dev","isExplicit":true}}
System info (please complete the following information):
OS: [e.g. Mac, Windows] Mac
npm package Version 10.2.4
Nextjs 14.2.1
Platform local at the moment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Have you checked middleware.ts? I had the same issue locally. Then I figured out middleware.ts was bypassing all routes including api/inngest. So, I added api/inngest to the matcher.
middleware.ts
// AS-ISimport{auth}from"@providers/auth";exportdefaultauth((req)=>{// some logic like authentication});exportconstconfig={matcher: ["/((?!_next|api/auth|logo.svg|favicon.ico).*)"],};
// TO-BEimport{auth}from"@providers/auth";exportdefaultauth((req)=>{// some logic like authentication});exportconstconfig={matcher: ["/((?!_next|api/auth|api/inngest|logo.svg|favicon.ico).*)"],};
Describe the bug
I have been going through the guides just to try out the ingest product. However I couldn't pass the syncing apps part.
To Reproduce
Go through the https://www.inngest.com/docs/quick-start tutorial.
Expected behavior
Local server syncs with nextjs
Code snippets / Logs / Screenshots
route.ts
When I ping localhost:3000/api/inngest, I get this response
{"message":"Inngest endpoint configured correctly.","hasEventKey":false,"hasSigningKey":false,"functionsFound":1,"mode":{"type":"dev","isExplicit":true}}
System info (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: