Skip to content
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

Support custom unstorage drivers #42

Open
shareable-vision opened this issue Jul 24, 2023 · 3 comments
Open

Support custom unstorage drivers #42

shareable-vision opened this issue Jul 24, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@shareable-vision
Copy link

shareable-vision commented Jul 24, 2023

Background

The promise of using the unstorage layer with Nuxt/Content/Assets is to be able to plug in any of a variety of sources.

Proposal

Studying the makeSourceStorage() of src/runtime/assets/source.ts, it appears that the module currently supports either the fs or github unstorage driver or defaults to the memory driver. I propose that the Nuxt Content Assets module support custom unstorage drivers as well following along the same pattern as the Nuxt Content module.

@shareable-vision shareable-vision added the enhancement New feature or request label Jul 24, 2023
@shareable-vision
Copy link
Author

shareable-vision commented Jul 24, 2023

I just wrote a webdav driver for unstorage. My goal is for authors to be able to simply write content on their own desktop or online via NextCloud. This currently works with Nuxt Content module, although I needed to submit a PR for Nuxt Content to build with custom drivers (nuxt/content#2193).

@davestewart
Copy link
Owner

Hey there!

Seems like a reasonable proposal.

I haven't looked at the code for a while so don't have any thoughts right now but was planning to look at a couple of tickets in the next week or so.

Feel free to experiment between now and then and I'll get back to you :)

@shareable-vision
Copy link
Author

I would be glad to help out . . I love the architecture of serving from plain directory of markdown (or MDC) and assets. The Content module really needs Content-Assets to be fully functional.

(I edited my comments here to stay on topic, and extracted proposal to support dynamic content.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants