{path|"common"}[.error]?[.{component}]+.node
Path rules:
- Camel case to dash (
crossAuthtocross-auth) - Slash to dot (
wiki/zetter/recipestowiki.zetter.recipes)
Component rules:
- Keep the hierarchy (
footer/legal/rulestofooter.legal.rules, notfooter.rules.legal) - There should always be at least one component
- Use the most specific path, if translation is used in some component, do not put it as parent's translation, unless it's common component
- For commonly used components use
commonlikecommon.icon.error
Error rules:
- After path or common, like
wiki.error.no-translationandcommon.error.generic
Code style notes:
- File names: hyphen-separated dot type (component/context, excluding pages as used for routing) dot ts.
- No default export in components
Deployment:
SUPER DUMB Nextjs forbids NODE_ENV except production, test and development. Suggest using APP_ENV, which has to be provided explicitly AND does not allow to use dotenv file declaration (including PORT variable).
That means that on staging, we use NODE_ENV=production, but with staging secrets.
- Logo font: Fipps by Stefanie Koerner / pheist;
- Minecraftia font by Aandrew Tyler (unable to reach them) has broken baseline, but looks like it's free for non-commercial;