Skip to content

review follow-up (#68): trim nextjs() config, move examples/scripts to root scripts/#78

Closed
wmadden-electric wants to merge 1 commit into
mainfrom
chore/nextjs-appdir-optional-scripts-move
Closed

review follow-up (#68): trim nextjs() config, move examples/scripts to root scripts/#78
wmadden-electric wants to merge 1 commit into
mainfrom
chore/nextjs-appdir-optional-scripts-move

Conversation

@wmadden-electric

Copy link
Copy Markdown
Contributor

Follow-up to #68 — carries the review-comment fixes that missed the #68 merge
window (auto-merge landed #68 at the conflict-resolution commit before these
were pushed).

Addresses the remaining #68 review comments:

  • nextjs() config trimmed. appDir is now optional, defaulting to the
    authoring file's own directory (.). The two example storefronts kept their
    service in src/, which forced the cryptic appDir: '..'; each service.ts
    moves up to the Next project root (beside next.config, matching datahub's
    own web service), so the declaration is just nextjs({ module: import.meta.url }).
    module stays — it's the ADR-0004 authoring-file token, identical to node().
  • examples/scripts/ → root scripts/. It's shared e2e CI tooling
    (ci-cleanup, the cold-connect canary, destroy-guard), not example apps. Refs
    fixed: e2e-deploy.yml, the deploy-verify-destroy action (absolute
    ${{ github.workspace }}/scripts paths, working-dir-independent),
    test:scripts, gotchas.md.
  • Unit test locking the appDir default; refreshed stale doc comments.

Green locally: build, typecheck (50), test (41), lint, test:scripts (111), the
storefront-auth integration test.

🤖 Generated with Claude Code

Addresses the PR #68 review comments:

- nextjs(): `appDir` is now optional, defaulting to the authoring file's own
  directory ('.'). The two example storefronts kept their service in `src/`,
  which forced the cryptic `appDir: '..'`; move each `service.ts` up to the
  Next project root (beside next.config, matching datahub's own web service),
  so the declaration is just `nextjs({ module: import.meta.url })`. `module`
  stays — it's the ADR-0004 authoring-file token, identical to `node()`.
- Move `examples/scripts/` (shared e2e CI tooling: ci-cleanup, cold-connect
  canary, destroy-guard) to root `scripts/` — it is not example apps. Fix the
  refs: e2e-deploy.yml, the deploy-verify-destroy action (absolute
  ${{ github.workspace }}/scripts paths, working-dir-independent), test:scripts,
  gotchas.md.
- Add a unit test locking the `appDir` default; refresh stale doc comments.

Green: build, typecheck (50), test (41), lint, test:scripts (111), the
storefront-auth integration test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
@pkg-pr-new

pkg-pr-new Bot commented Jul 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/prisma/compose/@prisma/compose@78
npm i https://pkg.pr.new/prisma/compose/@prisma/compose-prisma-cloud@78

commit: 01c9fd7

@wmadden-electric
wmadden-electric marked this pull request as draft July 15, 2026 14:26
@wmadden-electric

Copy link
Copy Markdown
Contributor Author

Superseded — the real fix is the assembler reading Next's manifest, not the authoring-side change this PR had. See the replacement PR.

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.

1 participant