chore: env commands integration build (do not merge)#221
Closed
angeloashmore wants to merge 4 commits into
Closed
Conversation
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>
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Preview
How to QA 1
Install the prerelease published for this PR, then run the full flow:
Footnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩