#Stuck in Onboarding

1 messages · Page 1 of 1 (latest)

pseudo basin
#

Hey, I just tried the next onboarding flow and I am stuck at the onboarding screen:

https://cloud.trigger.dev/orgs/fv-ventures-ug-3753/projects/backlinkgpt-DLac/setup/nextjs

For another project it worked withotu any issues but now I cannot get the job registered.

I am using clerk middleware, but made sure that I added the public route:

export default authMiddleware({
  debug: true,
  publicRoutes: [
    '/api/trigger',
]

I also can see the succesful registration:

✔️ [trigger.dev] Detected TriggerClient id: backlinkgpt-DLac
✔️ [trigger.dev] Found API Key in .env.local file
✔ [trigger.dev] Found your trigger endpoint: http://localhost:3000/api/trigger
✔ 🚇 Created tunnel: https://8ce0-2a02-3102-4c34-0-cc93-6ea7-225b-f314.ngrok-free.app
✔ [trigger.dev] Refreshed 2:43:54 PM

Would appreciate any help!

oak glacier
#

Looking into this now 👍

#

Yea it looks like everything worked but we didn't find any defined jobs

#

Where are your jobs being defined?

pseudo basin
#

@oak glacier thanks for helping me!

JOBS:

packages/frontend/src/jobs/index.ts
packages/frontend/src/jobs/examples.ts

CONFIG:

packages/frontend/src/trigger.ts

API ROUTE:

packages/frontend/src/app/api/trigger/route.ts
oak glacier
#

In the API Route, are you importing jobs like this:

import { createAppRoute } from "@trigger.dev/nextjs";
import { client } from "@/trigger";

import "@/jobs";

//this route is used to send and receive data with Trigger.dev
export const { POST, dynamic } = createAppRoute(client);
pseudo basin
#

@oak glacier oh that did the trick!

Super sorry, stupid mistake on my side. I remember I had some typescript issues when I did a hotfix and just removed the jobs since there was an issue with the import, but this fixed it now!

Thanks a ton! Excited to continue playing with trigger.dev now 🙂

Also might write some review or throughts on my blog felixvemmer.com

Appreciate the super quick help!