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

Hub Storage Dir Config #111

Closed
unibeck opened this issue May 17, 2024 · 1 comment · Fixed by #112
Closed

Hub Storage Dir Config #111

unibeck opened this issue May 17, 2024 · 1 comment · Fixed by #112

Comments

@unibeck
Copy link
Contributor

unibeck commented May 17, 2024

Is your feature request related to a problem? Please describe.
The current directory for local wrangler storage (D1, KV, R2) is .data/hub. I have separate cloudflare worker that shares the same DB as my nuxthub project, though wrangler's default location is .wrangler/state/v3. So I can't share storage options locally.

Describe the solution you'd like
A config to change the directory nuxthub uses for local storage

Describe alternatives you've considered
I tried using wrangler's --persist-to=./.data/hub, but that ends up using local DB at .data/hub/v3.

I tried using a symlink from .wrangler/state/v3 to .data/hub, though wrangler fails as it strictly expects a directory, not a link.

Additional context
Discord discussion

unibeck added a commit to unibeck/nuxt-hub-core that referenced this issue May 17, 2024
unibeck added a commit to unibeck/nuxt-hub-core that referenced this issue May 17, 2024
@unibeck
Copy link
Contributor Author

unibeck commented May 17, 2024

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

Successfully merging a pull request may close this issue.

1 participant