Home
Support Forums

Next.js with background functions

Hey,

is it possible to deploy Next.js with additional background functions?
I’m getting this error message: No Functions were found in functions directory

I declared “functions” as my default function directory but it seems like the api route directort overwrites the netlify functions folder.

Any idea how to solve this? Should i just handle all my functions within usual netlify functions instead of next.js api routes?

Thanks and kind regards,
Philipp

Hi @PhilBookst

There is no issue (that I am aware of) in bundling functions with Next.js. I believe background functions would work any differently either.

Are you able to share more about the structure/setup of your project, build settings, file-based configuration settings?