Skip to content

feat(instant-start): remove Starter Preview on init handoff - #257

Draft
jomifepe wants to merge 6 commits into
mainfrom
jp/instant-start-preview
Draft

feat(instant-start): remove Starter Preview on init handoff#257
jomifepe wants to merge 6 commits into
mainfrom
jp/instant-start-preview

Conversation

@jomifepe

Copy link
Copy Markdown
Contributor

Summary

  • Removes the managed hosted preview named "Starter Preview" during prismic init handoff
  • Drops URL-format-specific matching in favor of stable preview label identification
  • Updates init tests and related test helpers

Related

  • next-instant-start: multi-tenant hosted preview deployment patch
  • Obelix: provisions preview as "Starter Preview" with /api/preview/{repositoryId}

Test plan

  • Run tests for init command
  • Run prismic init against a repo with a "Starter Preview" config and confirm it is removed
  • Confirm local preview setup still works after handoff

Made with Cursor

jomifepe and others added 6 commits August 7, 2026 16:05
Remove path-based preview URLs and delete deployment/hosted-preview
when users run prismic init to take over the starter locally.

Co-authored-by: Cursor <cursoragent@cursor.com>
Align CLI cleanup with renamed instant preview deployment folder.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Remove deployment path constant and delete documents with .deployment
together during starter handoff when the local package matches.

Co-authored-by: Cursor <cursoragent@cursor.com>
…cleanup

Hosted preview URLs now include a prismicHost query param; compare origin
and pathname only so init still removes the starter handoff entry.

Co-authored-by: Cursor <cursoragent@cursor.com>
Delete Starter Preview configurations during handoff without coupling the CLI to hosted preview URL formats.
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