-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
📜 Description
Trying to build for production
👟 Reproduction steps
- Install Novu with a Next 15 app as described in the Novu setup guide
- Create the route handler using Novu's serve() function as explained in the docs
- Try building your app
👍 Expected behavior
Build successfully
👎 Actual Behavior with Screenshots
Novu version
Novu SaaS
npm version
No response
node version
No response
📃 Provide any additional context for the Bug.
After NextJS 15 the typing changed for Route Handlers. The second argument is now of type "RouteContext", which causes this error.
Inngest, another open source project with very similar structure to Novu, has resolved the issue for their product. The relevant source code from Inngest (and how they fixed the issue) can be found here: https://github.com/inngest/inngest-js/blob/main/packages/inngest/src/next.ts
Using their source I was able to create a custom Novu serve() function and get this working, but it would be nice to have this out-of-the-box with Novu.
👀 Have you spent some time to check if this bug has been raised before?
- I checked and didn't find a similar issue
🏢 Have you read the Contributing Guidelines?
- I have read the Contributing Guidelines
Are you willing to submit PR?
None
Metadata
Metadata
Assignees
Labels
No labels
