You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there,
First off thanks for taking the time to put something like this together. I did have some issues getting this up and going on my system and was hoping to propose some things that might help others.
I just submitted a PR with some changes to the readme.md. Nothing too crazy, just fixing the markdown for the codeblocks so that it displays correctly.
I do think it would help to get some example usages, such as setting up site-wide settings, like Google analytics, as well as per-page stuff like title/description/og fields. I was actually unable to get this installed and working by importing the documents and objects from the plugin package. I'm not sure if it's because of a bug, or if I was just doing it wrong. I ended up copying over the code and gutting some things to get a custom solution for my site.
As far as the errors I was seeing, this is the one I get when i add siteMeta() to my list of plugins. I am using NextJs 14, so I'm not sure if that has something to do with it:
The text was updated successfully, but these errors were encountered:
So the auto import that intellij uses is the commented line in the screenshot below. I tried using the import line in the github docs but I get this error:
If I switch it to SiteMeta and use that in my list of plugins, it loads into the studio, however it doesn't let me import any of the sanity objects.
Thanks for the PR! I'm new to making packages and i appreciate all the feedback. I'm looking into the auto import issue you're having now. I need to make sure the typing and naming is consistent.
Hey there,
First off thanks for taking the time to put something like this together. I did have some issues getting this up and going on my system and was hoping to propose some things that might help others.
I just submitted a PR with some changes to the readme.md. Nothing too crazy, just fixing the markdown for the codeblocks so that it displays correctly.
I do think it would help to get some example usages, such as setting up site-wide settings, like Google analytics, as well as per-page stuff like title/description/og fields. I was actually unable to get this installed and working by importing the documents and objects from the plugin package. I'm not sure if it's because of a bug, or if I was just doing it wrong. I ended up copying over the code and gutting some things to get a custom solution for my site.
As far as the errors I was seeing, this is the one I get when i add siteMeta() to my list of plugins. I am using NextJs 14, so I'm not sure if that has something to do with it:
The text was updated successfully, but these errors were encountered: