Issue with updating the Post schema in Sanity Studio.
7 replies
Last updated: Feb 9, 2023
G
Hi everyone,
I'm pretty new to web development, and I'm following a crash course by User where he builds a few apps using Next.JS, and the first one is a blog within Sanity.
My issue is, everything was working smoothly, until I tried to update the Post schema in the studio.
My studio is running in localhost:3333 normally, I can create posts, authors, query them using vision, however, when I modify anything in my app folder/schemas/post.ts (I'm using typescript), it does not update in the studio. I tried including a description field, but my studio does not show it. I even tried changing the title value in the title field to pt-br, no luck too.
I'm pretty new to web development, and I'm following a crash course by User where he builds a few apps using Next.JS, and the first one is a blog within Sanity.
My issue is, everything was working smoothly, until I tried to update the Post schema in the studio.
My studio is running in localhost:3333 normally, I can create posts, authors, query them using vision, however, when I modify anything in my app folder/schemas/post.ts (I'm using typescript), it does not update in the studio. I tried including a description field, but my studio does not show it. I even tried changing the title value in the title field to pt-br, no luck too.
Feb 9, 2023, 1:38 PM
But if you have it running on 3333 normally, I'm not sure what would be preventing the updates to show
Feb 9, 2023, 1:46 PM
G
The dev server is running in localhost:3000, where I see the page we're building, but the studio runs in localhost:3333.
Feb 9, 2023, 2:22 PM
If the Studio isn’t updating, it seems like your server either isn’t actually running or you’ve somehow ended up on a deployed version of your Studio.
Feb 9, 2023, 5:16 PM
G
I created the app using:
After, I installed Sanity inside this sanity-yt-demo folder using Sonny's recommendation:
Running
npx create-next-app --example with-tailwindcss sanity-yt-demo
npm install -g @sanity/cliAfter, I started the project using
sanity initand named it crash-course.
Running
npm run devin the sanity-yt-demo folder opens my project in localhost:3000, and if I change to directory of the sanity project (crash-course) and run
sanity startit opens the studio in localhost:3333, but no changes are done when I modify the post.ts file in the schemas folder (inside crash-course folder).I'm really lost, if somebody has any clue what to do, I appreciate it.
Feb 9, 2023, 5:43 PM
G
Well, well, well, I tried rebooting everything for the fourth time and now it's working. Go figure.
Thank you everyone for the support!
Thank you everyone for the support!
Feb 9, 2023, 6:03 PM
Sanity– build remarkable experiences at scale
Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.