Docs

Project Structure

Understand where app bootstrap, routes, and layouts live.

Updated: 2026-02-23

Typical structure

A BetterHelper SSR app keeps a thin bootstrap file and most application concerns in file-based pages.

text
src/
  app.tsx
  layout.tsx
  pages/
    404.tsx
    error.tsx
    [lang]/index.tsx
    [lang]/docs/[slug].tsx

Responsibilities

app.tsx configures the site runtime and routing.

layout.tsx defines global shell and nav.

pages/** define route components, loaders, and entities.