Code Monkey home page Code Monkey logo

Comments (4)

Burnett2k avatar Burnett2k commented on June 11, 2024

@binoy14 I think I triggered this in my recent PR merge. Is this the type of error you're talking about?
https://github.com/FormidableLabs/nextjs-sanity-fe/runs/7661103739?check_suite_focus=true

Log from the sanity deploy graphql section:

Dataset: production
Tag: default

- Checking for deployed API
✔ Checking for deployed API
- Generating GraphQL schema
✔ Generating GraphQL schema
- Validating GraphQL API
⚠ Validating GraphQL API

Found BREAKING changes from previous schema:
 - Blog was removed.
 - BlogFilter was removed.
 - BlogSorting was removed.
 - RootQuery.Blog was removed.
 - RootQuery.allBlog was removed.


Error: Dangerous changes found - falling back. Re-run the command with the `--force` flag to force deployment.
    at deployApiActions (~/work/nextjs-sanity-fe/nextjs-sanity-fe/node_modules/.pnpm/@[email protected]_sfoxds7t5ydpegc3knd667wn6m/node_modules/@sanity/core/lib/actions/graphql/deployApiAction.js:[17](https://github.com/FormidableLabs/nextjs-sanity-fe/runs/7661103739?check_suite_focus=true#step:9:18)8:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
undefined
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  [email protected] deploy-graphql: `sanity graphql deploy`

from nextjs-sanity-fe.

binoy14 avatar binoy14 commented on June 11, 2024

Yes for this specific case, I was testing something on my draft PR #18 you can deploy forcefully locally. running pnpm deploy-sanity-graphql they are fine to remove for now I will get the PR ready for review tomorrow

from nextjs-sanity-fe.

Burnett2k avatar Burnett2k commented on June 11, 2024

Makes sense. I do think it's a useful feature to have, though. Perhaps we should be creating sanity PR environments for you to test these schema changes so that we can avoid turning on the force feature?

from nextjs-sanity-fe.

Burnett2k avatar Burnett2k commented on June 11, 2024

On second thought, I think forcing is probably the right thing to do for now. It's a good way to set things back to the proper state if they drift too far from people making local changes. Will do a quick pr to fix this

from nextjs-sanity-fe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.