Open artilishes opened 1 month ago
Could you create a zip file of the sanity studio folder, or at least of the dist
folder generated when you run sanity build
and upload it somewhere (like here), or send it to espen@sanity.io
?
I just sent you a mail. Thank you!
Hey @rexxars , I figured it out. We have some files in our nextjs' public folder. One of them had no file extension. Once I removed it, the deploy goes through. But I'm wondering, why the sanity deploy is affected by nextjs' public folder and causes an internal server error on your end.😅
Thanks for reporting back, @artilishes ! I have no clue why that would cause issues - and I'm also unable to reproduce with the zip files you provided.
Could you tell us a little bit more about how your folder/project structure is? It sounds like you have a nextjs and a sanity app in the same project structure? Are you deploying from a specific folder that holds the sanity studio?
Describe the bug
I initialised a new Sanity project inside a Nextjs project. When trying to deploy my local schemas with
sanity deploy
the Deployment fails with an internal server error.To Reproduce
Steps to reproduce the behavior:
npm create sanity@latest -- --project xxxxxx --dataset production --template clean
within your nextjs projectsanity deploy
Expected behavior
Deploy successfully or show a helpful error message.
Screenshots
Which versions of Sanity are you using?
@sanity/cli (global) 3.43.0 (latest: 3.44.0) @sanity/image-url 1.0.2 (up to date) @sanity/ui 2.1.10 (latest: 2.1.14) @sanity/vision 3.42.1 (latest: 3.44.0) sanity 3.42.1 (latest: 3.44.0)
What operating system are you using? macOS 14.5
Which versions of Node.js / npm are you running?
npm 9.8.1 node v18.18.0
Additional context