---
title: "Discussion on \"Part 3: API Routes in Next.js\" | Hashnode"
description: "Discussion on \"Part 3: API Routes in Next.js\". Everything you need to know about Next.js"
url: "https://hashnode.com/posts/part-3-api-routes-in-nextjs/61a4b6f59ac0d611876b1c3c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Part 3: API Routes in Next.js](https://eugenegoh.hashnode.dev/part-3-api-routes-in-nextjs?utm_source=hashnode&utm_medium=feed)

Everything you need to know about Next.js

Nov 29, 2021 · 4 min read · eugenegoh.hashnode.dev  
Updated Dec 9, 2021  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)

## Written by

[Eugene Goh](https://hashnode.com/@EugeneGoh)

@EugeneGoh · Kuala Lumpur, Malaysia

  
[View profile](https://hashnode.com/@EugeneGoh)

Software Engineer

I'm Eugene! My main interests include software engineering, blockchain &amp; entrepreneurship. I loves writing TypeScript/JavaScript, Next.js, GraphQL, Node.js, MongoDB, and PostgreSQL.

## Responses 1

Markdown supported · ⌘↵ to post

[Livia Hooson](https://hashnode.com/@PoppyWales)

[Nov 30, 2021](https://hashnode.com/posts/part-3-api-routes-in-nextjs/61a4b6f59ac0d611876b1c3c/comment/61a5bc042be89f3d0aba0d80)

Recently I've started work on a next.js project (eCommerce with a chat & notifications) which uses a REST backend on an external API server, as well as the build-in API routes of Next.js. My idea is that I will use the backend server for stuff like WebSockets and cron-jobs. I then want the Next.js API routes to handle the authentication of users, fetching of data, and anything else that isn't limited by server less functions. In my mind, this sounds like a good idea, but I'd be glad to hear your opinion on it [azar](https://azar.pro/) [shagle](https://shagle.download/) . Any glaring issues etc, anything I might not have thought of with this approach?
