Next.js Discord

Discord Forum

Use serverless function within NextJS app.

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
Hi!
I want to expose an endpoint, by utilizing go for some heavy excel data processing, in my Next14 app with app router.

I added a ./api/export.go within my project and the endpoint seems to work in the preview deploy, with a magic runtime: Runtime provided.al2023.
But this did break my existing API:s in the ./src/app/api/auth/[...nextAuth].route.ts, it gives a 404 now.

Have anyone else been experimenting with this and could point me to right directions.

0 Replies