prismicio / prismic-svelte

Svelte components and helpers to fetch and present Prismic content
https://prismic.io/docs/technical-reference/prismicio-svelte
Apache License 2.0
21 stars 6 forks source link

fix(kit): support previews using a `/preview/` route prefix #16

Closed angeloashmore closed 1 year ago

angeloashmore commented 1 year ago

Types of changes

Description

This PR updates the existing @prismicio/svelte/kit preview functions and components to support a new, cleaner method of integrating Prismic previews.

Documentation on the recommended SvelteKit app setup and @prismicio/svelte/kit's API will be published soon.

Checklist:

codecov-commenter commented 1 year ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (b88da24) 98.00% compared to head (776b359) 98.00%.

:exclamation: Current head 776b359 differs from pull request most recent head 2508778. Consider uploading reports for the commit 2508778 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #16 +/- ## ======================================= Coverage 98.00% 98.00% ======================================= Files 11 11 Lines 600 600 ======================================= Hits 588 588 Misses 12 12 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.