Skip to content

chore: env commands integration build (do not merge)#221

Closed
angeloashmore wants to merge 4 commits into
mainfrom
aa/env-integration
Closed

chore: env commands integration build (do not merge)#221
angeloashmore wants to merge 4 commits into
mainfrom
aa/env-integration

Conversation

@angeloashmore

Copy link
Copy Markdown
Member

Resolves:

Warning

Do not merge. Throwaway branch for end-to-end testing only. It combines the full environments stack (#218 + #219 + #220) into one branch so the per-PR prerelease has the whole flow. Close this PR when testing is done — the real changes ship via #218#219 / #220.

Description

Integration of the environments work split across #218, #219, and #220, combined here only so a single prismic@pr-<n> prerelease can be installed to test the whole flow (env commands + command wiring + prismic/env/register).

Checklist

  • A comprehensive Linear ticket, providing sufficient context and details to facilitate the review of the PR, is linked to the PR.
  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

How to QA 1

Install the prerelease published for this PR, then run the full flow:

npm i prismic@pr-<this-PR-number>
prismic env set my-repo-staging
prismic status            # targets the environment
# add `import "prismic/env/register"` (or run `prismic gen setup`), then `npm run dev`

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

angeloashmore and others added 4 commits July 8, 2026 23:45
Introduce CLI-owned active-environment state keyed by project path,
stored in environments.json, plus the `prismic env set/unset/active/list`
commands to manage it. `resolveEnvironment` is kept for now; existing
commands are migrated to the new state in a follow-up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Migrate pull, push, status, sync, and the locale/preview/token/webhook
commands to read the active environment from CLI state, falling back to
the repository name. `--env` becomes a deprecated alias for `--repo`, and
`resolveEnvironment` is removed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add the `prismic/env/register` export, which sets the framework's public
environment variable from the active environment at config-load time, and
wire `gen setup` to import it in the framework config for Next.js, Nuxt,
and SvelteKit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@angeloashmore

Copy link
Copy Markdown
Member Author

Superseded: #220 now targets #219, so its prismic@pr-220 prerelease carries the full A+B+C flow. This throwaway integration PR is no longer needed.

@angeloashmore
angeloashmore deleted the aa/env-integration branch July 9, 2026 00:02
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