Hi,
I need next.js to run one service instance in the background which should happen on serverside and not on clientside. So it should happen on the backend. Where would I place this service and where would I have to call it, that it is client independent?
I think this would fit into the 'api' directory but I dont know if this is supported in app mode.
I am using the app mode. Does the api folder work for it? Does it fit to my scenario?
Any help is welcome!
Thank you