-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Local repository not recognizing posts from remote #35
Comments
Thanks for flagging the issue! Listing files will be done differently when using the local workflow. Is this your site in question? https://github.com/refact0r/forgotten-europe-website |
Yes that is the site I am working on. |
Okay, will check it out later! |
I’m running your SvelteKit project locally. I see all the content — 2 blog posts, 5 interviews and 7 images — on Svelta CMS. Not sure what’s going on 🤔 Did you reload |
Yes, I have tried reloading the page, clearing site data, restarting dev server. It seems that all images from remote load correctly, but blog posts, news articles, and the 1 interview not created locally do not show up. |
Hmm, will check again. |
Got same problem in my repo https://github.com/zankhq/astro-starter/tree/chore/sveltia |
@zanhk Are you on Windows? To be honest, I’ve tested the local repo editing only on macOS, so there may be permission issues or something. To clarify, changes made to local files are not automatically reflected in the CMS interface; you’ll need to reload the app to see any new external changes. Automatic updates will be possible in the (near) future when the new |
@kyoshino yes I m on windows, it asked for folder permissions and I gave it the whole repo folder access. I've opened the admin ui with existing file (from the repo that was previously using decap cms) and I did not see them, I've created a new entry and it created the file succesffully, after restarting I could only see the created file and not the previous one. As you mentioned could probably be a permission issue, I ll take a look when I ll have sometime but if it's only a local problem doesn't seem a big deal as it's always possibile to change those files directly, just mentioned as I was testing out the repo. |
Let me check with my Windows virtual machine later today. |
Testing on Windows 10 but cannot reproduce the issue. 🤔 🤔 🤔 Fetch the origin, reload the CMS, and then remote changes show up in the admin. I suspected it might be related to file paths because Windows uses a backslash as the separator, but not sure. Has anyone noticed any difference between a file created locally and a file created remotely? |
Or perhaps line breaks, because Windows uses CR+LF while macOS/Linux/web uses LF. |
Now I could reproduce the issue. Figuring out why! |
So line breaks are the culprit. 🤖 This kind of issue can be avoided by configuring the |
The fix is in! Sorry to take this long 🙇🏼 |
@kyoshino Awesome |
@kyoshino This works as well! |
I have a Sveltekit static site with Sveltia in a Github repo deployed on Netlify. The deployed version of Sveltia correctly recognizes all posts. However when I run the site in development mode locally and select "Work with local repository", Sveltia only displays the posts that were created using the local version. The posts that were pulled from the Github repo are not shown.
The text was updated successfully, but these errors were encountered: