Should I make a separate REST api or use my Next project as the api backend

I built a dashboard to allow admins to add products and view orders. What I want to do now is to create a separate project, an e-commerce website for, say stationaries. I want this project to simply call an api for all the backend work. I don't know if I should build the api in the Nextjs project where I did the dashboard or create a separate REST or graphql project. I'm leaning more towards separating it but I want to hear more opinions before I commit to something thanks
Was this page helpful?