Configuration
Configure site metadata, canonical URL behavior, and content processing.
Mental model
lib/site-config.ts defines site identity and base URL behavior.
Content rendering behavior lives in the content and MDX utilities.
Do this
- Edit site metadata in
lib/site-config.ts:
siteNametaglinedescriptionauthor
- Set canonical URL in production:
NEXT_PUBLIC_SITE_URL="https://your-domain.com"
- Review behavior files when changing rendering/link logic:
app/content/utils.tsapp/components/mdx.tsxapp/content/dataview.tsapp/content/timeline.ts
Verify
- Start the app and open any page.
- Confirm site title/metadata values are correct.
- Run:
npm run test
npm run typecheck
npm run build
Expected result: no route/link check errors, no type errors, successful build.
Notes
If NEXT_PUBLIC_SITE_URL is missing in production, the app falls back to https://example.com and logs a warning.