Skip to content

docs(data-layer): add fetcher isolation rule#18066

Merged
pettinarip merged 2 commits into
devfrom
docs/data-layer-isolation-rule
Apr 30, 2026
Merged

docs(data-layer): add fetcher isolation rule#18066
pettinarip merged 2 commits into
devfrom
docs/data-layer-isolation-rule

Conversation

@pettinarip
Copy link
Copy Markdown
Member

Adds a new rule to the data-layer skill (Rule 5) and a short pointer in src/data-layer/docs.md (Rule 4):

  • Fetchers must stay isolated from the Next.js app — no process.cwd() reads, no imports from app/, src/components/, or src/lib/data/.
  • Allowed: types, pure constants, pure utility functions.
  • If a fetcher needs app data, fetch it via the GitHub API. Don't bundle app files via additionalFiles in trigger.config.ts.
  • Points at fetchGitHubContributors.ts as the canonical pattern.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 29, 2026

Deploy Preview for ethereumorg failed.

Name Link
🔨 Latest commit f7f367b
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/69f33c37dc473c000819a302

Copy link
Copy Markdown
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pettinarip 👍 Lgtm, maybe just an explicit note about avoiding public/ files as well

Comment thread .claude/skills/data-layer/SKILL.md Outdated
Co-authored-by: wackerow <54227730+wackerow@users.noreply.github.com>
@pettinarip pettinarip merged commit 86b9b06 into dev Apr 30, 2026
5 of 9 checks passed
@pettinarip pettinarip deleted the docs/data-layer-isolation-rule branch April 30, 2026 11:25
@wackerow wackerow mentioned this pull request May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants