Replies: 2 comments 1 reply
-
|
Lume and LumeCMS are different things. The CMS is used in dev mode (with The purpose of the storages in LumeCMS is to have the ability to modify files that are not available locally, but it doesn't mean that Lume can't access to these files locally. For example, in this repo I have the GitHub storage configured to manage the files of other repository that could be a Lume site (it's not the case but it could be) so these files would be loaded by LumeCMS remotely but Lume would read them from the filesystem. If your files are accessible publicly on GitHub, you can add them in Lume without any configuration. Private files or other Git providers like GitLab or Codeberg are not supported (but I think it could be feasible, I created this package some time ago and it could be extended with more adapters and used to load remote files by Lume). |
Beta Was this translation helpful? Give feedback.
-
|
My goal is to deploy site with CMS on "deno deploy (EA)"
I understand your current views and outlook. I'll hack away at my goals. Thank you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Lume CMS supports multiple storage backends:
https://github.com/lumeland/cms/tree/main/storage
They work perfectly in the CMS editor, but currently it is difficult to run
lume buildusing these storages.My idea is that the
lume_cmsplugin should iterate overdocuments,collections, andfiles, fetch all entries via the storage API, and then register them intosite.pages(asremoteFile, or something similar).My current problem is the
previewUrlon the CMS edit page. It seems that the Lume rebuild process is entirely dependent on filesystem watching. The defaultpreviewUrlfunctionlume/plugins/lume_cms.ts
Lines 59 to 77 in 98f49d7
waits for the
idleevent, but GitHub storage does not modify the local filesystem. As a result, it does not trigger a Lume rebuild and theidleevent is never fired.Would it be a reasonable approach to explicitly call
site.update(files);on CMS save?If you have any plans or ideas regarding this, I would be happy to hear your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions