https://pozafly.github.io/nextjs/about-modularizing-api-routes-code-in-nextjs/
Next.js의 API Routes 코드 모듈화에 대해서
API Routes를 사용하면 코드가 매우 지저분해진다. API Routes를 사용하면서 어떻게 하면 코드를 보기 좋은 형태로 남길 수 있을지 고민한 흔적.
pozafly.github.io
How do you put api routes in the new app folder of Next.js?
I have a test API under: pages\api\accounts\login.js. And I am learning the new app folder, which is still an experimental feature in Next.js (as of today). Is it possible to move my login script i...
stackoverflow.com
https://nextjs.org/docs/app/building-your-application/routing/route-handlers
Routing: Route Handlers | Next.js
Create custom request handlers for a given route using the Web's Request and Response APIs.
nextjs.org
pages router로 구성되어있는 next 프로젝트의 코드를 app router로 구성되어있는 내 프로젝트에서 쓰려고 하니까 문제가 이만저만이 아니다.. 몇시간째 이 오류만 해결중....
'Front-End' 카테고리의 다른 글
[Next.js]usePathname, useSearchParams (0) | 2024.03.26 |
---|---|
[Vercel, Front-end] mono-repo에서 배포 안되는 문제 해결 (1) | 2023.11.27 |
[Styled-components] it looks like an unknown prop "X" is being sent through to the DOM 오류 해결 (X: 사용자 정의) (0) | 2023.10.12 |
[Next] 동적라우팅에서 router.pathname, router.asPath 차이 (0) | 2023.09.30 |
[Next] Next내에서 .env 파일의 환경변수들이 안 읽히는 문제 해결 (0) | 2023.09.25 |