#Is using NextJS ONLY for building an API a good idea or an overkill?

8 messages · Page 1 of 1 (latest)

atomic badge
#

I am planning to build a very simple api (there will be NO frontend) and just wondering if nextjs api routes are suitable for this purpose (given that I will be deploying on vercel). Or will it be an overkill and should I just use expressJS?

grand widgetBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

raw grail
#

honestly i would probably do this just for the ease of it

#

if you wanted to seperate in the future it wouldn't be too hard to change the functions to lambdas in another framework

#

don't take my word for gospel though, i don't know if there are implications at scale or if it even matters

atomic badge
#

yeah. Thats what I am wondering as well. If NextJS even supposed to be used without frontend. But, I removed all frontend related dependencies and its working fine.

west karma
#

^ kinda agree, it's probably fine if you're really against learning new tech but express is really easy and a good candidate for a simple api. plus lots of people have done it before so if you get stuck you'd have confidence someone else has faced an issue

torpid bane