Comments (3)
Ah of course. After running sanity graphql deploy
from the studio
directory it solved the issue.
Thanks!
from example-company-website-gatsby-sanity-combo.
Have you redeployed the GraphQL API after altering the schema? (sanity graphql deploy
). You might have to run gatsby clean
after having redeployed the GraphQL API as well. You have to redeploy because the source plugin uses the schema-definition to create the types inside of Gatsby.
from example-company-website-gatsby-sanity-combo.
I'm having the same issue with a different schema now but on the live version. I've been using sanity graphql deploy
whenever I've made changes locally to the schemas and this has worked properly, but only locally.
Now that I'm trying to deploy I have run sanity graphql deploy
and sanity deploy
from the studio folder but my Netlify deployment is failing to build because it can't find a raw field. This raw field does exist on my local version, which is strange because I thought the same API was consumed by both development and production environments.
Correction: it was an error with one of my components which I reproduced by running gatsby build
on my local machine. I've now fixed it. Interestingly there were no problems running the application in development mode.
from example-company-website-gatsby-sanity-combo.
Related Issues (13)
- Running `yarn run sanity-deploy` at the root, just hangs HOT 2
- sanity-deploy from a fresh install fails to deploy/build properly HOT 8
- Site deploy fails to build with "failed during stage 'building site': Deploy directory 'web/web/public' does not exist" HOT 1
- Missing "Site settings"... HOT 8
- Using Gatsby Cloud - Preview build fails HOT 1
- "Site Settings", "Company Info", "Pages" not editable on first run HOT 4
- I can't add pages from sanity HOT 3
- "See the example up and running" in README.md just links to youtube video HOT 1
- Fails to deploy to Netlify. `Error: 'darwin-x64' binaries cannot be used on the 'linux-x64' platform.'
- Gatsby - Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './is-truthy' is not defined by "exports" in.. HOT 1
- Cannot query field "allSanityPost" on type "Query" HOT 4
- npm run now-deploy HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from example-company-website-gatsby-sanity-combo.