Next.js - running function when server starts listening

后端 未结 0 859
北海茫月
北海茫月 2021-01-29 09:54

I wanted to add SQS job to my nextjs script and I\'d like to run it when the server starts.

Typically, I\'d do something like this. What would be the best way to achieve

相关标签:
回答
  • 消灭零回复
提交回复
热议问题