Home
Support Forums

Gatsby Build is stuck on graphql api deployment

I am trying to build a Gatsby site attached with sanity CMS but it is keep stucking on the points where it gives graphql API deployment. It ends up with maximum upload timeout.

Hi @yousaf.raza

Clarifying, are you attempting to deploy Sanity API on Netlify, or connect to a Sanity API endpoint?

actually connecting to it

Are you able to share your git repository?

It is private but i can add you

Can you share the package.json from the repository, and the build settings you are using.

{

“private”: true,

“name”: “sanity-gatsby-blog”,

“version”: “1.0.17”,

“scripts”: {

"build": "lerna run build --parallel",

"dev": "lerna run dev --parallel",

"format": "lerna run format",

"build-studio": "lerna bootstrap && cd studio && npm run build",

"build-web": "lerna bootstrap && (cd studio && SANITY_AUTH_TOKEN=$SANITY_DEPLOY_STUDIO_TOKEN npm run graphql-deploy) && (cd web && npm run build)",

"graphql-deploy": "lerna run graphql-deploy",

"lint": "lerna run lint",

"postinstall": "lerna bootstrap",

"test": "echo \"Error: no test specified\" && exit 1"

},

“devDependencies”: {

"@sanity/cli": "^2.7.4",

"babel-eslint": "^10.1.0",

"eslint": "^7.21.0",

"eslint-config-prettier": "^8.1.0",

"eslint-plugin-import": "^2.22.1",

"eslint-plugin-prettier": "^3.1.4",

"eslint-plugin-react": "^7.22.0",

"lerna": "^3.22.1",

"prettier": "^2.2.1"

},

“dependencies”: {

"gatsby": "^3.14.3",

"gatsby-plugin-plausible": "0.0.7",

"react-icons": "^4.3.1"

}

}

I have two rep inside it one is studio and other is web. studio is fine but when we try to deploy web it stucks on this point. If you want i can share web package.json as well

I wonder if this is something you are trying to accomplish

no both have different url in my case I am just deploying it concurrently. but while deploying web it stucks on that point i dont know if it is server problem. or any misconfiguration.

In such situations, it’s really hard to tell when you can’t see the whole code. After all, it often happens that the error is not significant at all, but because of it the program does not work.

Hi there, @yousaf.raza :wave:

Sorry to hear you are encountering some issues. In order to look into this further, we will need some additional information. Can you share your netlify site name and your full deploy log, not a screenshot?