Frontend Architecture
Framework:
- Next.js 14, Pages Router (
pages/*), limitedapp/usage to resolve feature flags for Vercel toolbar - Middleware:
middleware.jsapplieswithStableIdandwithAuthto most routes - Client-side data: Relay 14 with react-relay-network-modern (SSR middleware), SSR is currently unused
- UI: MUI v5, custom components in
components/*, containers incontainers/*
Relay environment:
- Client env:
lib/createEnvironment/client.jswith cache, SSR hydration, and/api/graphqlendpoint - Server env:
lib/createEnvironment/server.jsfor SSR requests - Artifacts:
__generated__/via Flow types (seerelay.config.js)
State & hooks:
- Many feature hooks in
hooks/*for updaters and filters
Internationalization:
react-intl; translation JSON underlang/*.json; extraction scripts inscripts/*
Storybook (needs to be fixed):
- Storybook config and stories under components