Skip to content

Commit

Permalink
Merge pull request #11191 from wellcomecollection/update-readme
Browse files Browse the repository at this point in the history
remove outdated text
  • Loading branch information
gestchild authored Sep 18, 2024
2 parents b4e0a2d + 1b6de73 commit 06a4c7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions prismic-model/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ We make changes to our prismic models, and deploy them, using slice machine.

Run slice machine with the following command `yarn slicemachine` in the root of the project and access it at localhost:9999

When deploying changes, slicemachine will only tell you which files have changed but not what those changes are. If you want more detail you can run `yarn diffCustomTypes` from inside the /prismic-model. N.B. at present this script only compares custom types, not changes to slices - [there is an open github issue to address this](https://github.com/wellcomecollection/wellcomecollection.org/issues/10936).
When deploying changes, slicemachine will only tell you which files have changed but not what those changes are. If you want more detail you can run `yarn diffCustomTypes` from inside the /prismic-model.

**WARNING:**
If you are **removing fields from a custom type**, if those are referenced in a query, you must remove any reference to those fields from the content app queries and **deploy the changes to the content app first**, before deploying the changes to Prismic.
Expand Down Expand Up @@ -114,7 +114,6 @@ If you have a locally running content app (`yarn content` in the repo root), you
$ yarn tryAllContentPages
```


## Migrating content using the migration API

The [migration API](https://prismic.io/docs/migration-api-technical-reference) allows you to `PUT` changes to existing Prismic documents, or `POST` new documents. The data format follows the response format of the [document API](https://prismic.io/docs/rest-api-technical-reference).
Expand Down

0 comments on commit 06a4c7a

Please sign in to comment.