-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Projects not showing deploy button with newer versions of sanity #60
Comments
Hey there @tim-soft it's a bit difficult to tell what the issue is based on the info you provided. It doesn't look as if any of the required fields were filled out properly, notably the Webhook URL appears to be a placeholder (note the: If all deploy fields are filled out correctly (including a token with proper access) you shouldn't have any issue with the current version of this plugin. If you're still experiencing issues, could you provide a bit more info on the steps you are taking? |
Yes, I removed the project key for the sake of the screenshot My project worked perfectly with this plugin, then at some point between sanity upgrades, the plugin stopped working I dont see any errors in the chrome devtools/console here is my sanity config import { defineConfig, PluginOptions } from 'sanity';
import { structureTool } from 'sanity/structure';
import { unsplashImageAsset } from 'sanity-plugin-asset-source-unsplash';
import { visionTool } from '@sanity/vision';
// Go to https://www.sanity.io/docs/api-versioning to learn how API versioning works
import { apiVersion, dataset, projectId, studioUrl } from './sanity/lib/api';
import { googleApiKey } from '@/app/data/contactInfo';
import { locate } from '@/sanity/plugins/locate';
import { presentationTool } from 'sanity/presentation';
import { schema } from './sanity/schema/schema';
import { vercelDeployTool } from 'sanity-plugin-vercel-deploy';
import { youtubeInput } from 'sanity-plugin-youtube-input';
export default defineConfig({
basePath: studioUrl,
dataset,
locate,
plugins: [
structureTool(),
// Vision lets you query your content with GROQ in the studio
// https://www.sanity.io/docs/the-vision-plugin
process.env.NODE_ENV === 'development' &&
visionTool({ defaultApiVersion: apiVersion }),
presentationTool({
previewUrl: {
draftMode: {
enable: '/api/draft',
},
},
}),
unsplashImageAsset(),
vercelDeployTool(),
youtubeInput({ apiKey: googleApiKey }),
].filter(Boolean) as PluginOptions[],
previewUrl: {
previewMode: {
enable: '/api/draft-mode/enable',
},
},
projectId,
// Add and edit the content schema in the './sanity/schema' folder
schema,
}); |
I have this issue as well. Did you fix this? |
Thanks for sharing more info @tim-soft!
I've tested on a few production studios (using Sanity I'd double-check your Vercel Token to ensure it has proper access to the project, and whether it's part of a vercel team. |
Same, the deploy buttons disappeared for me and I haven't changed any settings, just upgraded packages. sanity: I'm getting two error messages in the javascript console:
|
@michaelburtonray you should be on version 3.3.4 of this plugin, that is the latest (not sure where you got I'm testing on the same versions of React ( |
I also had a working project that stopped out of the blue, I don't see any errors in chrome devtools |
I had a similar issue, and updating the "sanity" package to version 3.66.1 helped me. |
I'm having a simlar issue as well with the deploy button missing. Everything was working fine until I upgraded other dependencies (I was already using 3.3.4 for this) |
Ah yeah so React seemed to be the issue for me- I downgraded to React (18.3.1) and it's now working again for me, even with the latest version of Sanity (3.67.1). Hope this helps! |
Same issue here. Downgrading React helped me too. |
I am still unable to get it to work, even after the downgrade to react 18.3.1. It just shows the webhook and Im not able to edit, delete or remove them now. |
Yeah, same thing here with React 19. The problem is that I'm using NextJs 15 and it requires this version. |
I'm part of the group that encountered button rendering issues after upgrading our site to React 19/Next 15. We were able to resolve it by installing/upgrading react-is to version 19.0.0. I’m not sure what the root problem is, but maybe someone else can help drill down further. In the meantime, this fix has restored functionality for our client. |
this worked! thank you! |
Hey @ndimatteo 👋
Thank you for the plugin, its incredibly useful!
Unfortunately something appears to have broken recently -- im not sure if this has to do with Vercel or newer versions of sanity but as of this writing I am trying with
[email protected]
and[email protected]
Projects show as a list with no deployment buttons
The text was updated successfully, but these errors were encountered: