Organize routes without affecting URL path
그룹 폴더로 코드를 정리해도 실제 URL 경로는 깔끔하게 유지됩니다.
파일 구조
organize-routes-without-affecting-the-url-path/ ├── page.tsx ├── (public)/help/page.tsx → /help └── (internal)/dashboard/page.tsx → /dashboard
핵심 파일 코드
// (internal)/dashboard/page.tsx
const Page = () => {
return <h1>Internal Dashboard</h1>;
};
// (public)/help/page.tsx
const Page = () => {
return <h1>Help Center</h1>;
};