Next.js App Router pages and routes.
app/
├── page.tsx # Homepage (redirects to marketing)
├── layout.tsx # Root layout
├── (marketing)/ # DELETE - Satūs marketing homepage
├── (examples)/ # DELETE - Demo pages (components, r3f, etc.)
├── api/
│ ├── draft-mode/ # Sanity draft mode
│ └── revalidate/ # Webhook endpoint
├── studio/ # Sanity Studio
├── loading.tsx # Global loading
├── error.tsx # Error boundary
└── not-found.tsx # 404 page
Quick cleanup (manual):
rm -rf "app/(examples)" # Remove example pages (r3f, sanity, shopify, etc.)
rm -rf "app/(marketing)" # Remove marketing homepageOr use the interactive setup:
bun run setup:project # Choose what to keep/removeThen:
- Customize
page.tsxfor your homepage - Add routes as folders with
page.tsx
import { Wrapper } from '@/components/layout'
export default function Page() {
return (
<Wrapper theme="dark" lenis webgl>
<section>Your content</section>
</Wrapper>
)
}Wrapper Props:
theme— 'dark' | 'light' | 'red'lenis— Enable smooth scrollingwebgl— Enable WebGL canvas
app/about/
├── page.tsx
└── _components/
└── hero/
└── index.tsx
- Server Components by default
- Colocate page components in
_components/ - Use route groups
(folder)for organization