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

Ability to set custom bindings on hub config, or overwrite configPath of nitro-cloudflare-dev from nuxthub #266

Open
9M6 opened this issue Sep 7, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@9M6
Copy link

9M6 commented Sep 7, 2024

Is your feature request related to a problem? Please describe.
I am not able to set QUEUE bindings or custom Bindings using nuxt.config.ts on NuxtHub

Describe the solution you'd like
Make it so I can define custom bindings on the hub config

hub: {
  bindings: {
    queue: {
      name: "queue-name"
    }
  }
}

or allow the overwriting of configPath from nitro-cloudflare-dev directly from hub config.

Describe alternatives you've considered
using fetch requests to generate the queue messages, and not depend on bindings.

Additional context
Add any other context or screenshots about the feature request here.

@atinux atinux added the enhancement New feature or request label Sep 9, 2024
@atinux
Copy link
Contributor

atinux commented Sep 9, 2024

Adding it to the list, this should not be hard to implement, ideally I would love to have a hubQueue(name) but quite frustrating to only be a producer.

Would you be happy if this is only a producer for now?

@9M6
Copy link
Author

9M6 commented Sep 9, 2024

Hey @atinux

Yes, a producer is great, I think that's the best use-case, since queues are handled by some other worker-script in my case, and I am using queues to delegate tasks to other scripts, since there's a limitation of 30s for function calls, but a 15min limitation for cron jobs and queue consumers.

But also in the future it would be nice to let nitro, or h3 define queues, scheduled and other stuff, similarly to hono.

@9M6
Copy link
Author

9M6 commented Sep 9, 2024

Also would be nice to be able to customize configPath; if there's other bindings I can add to the script, I can manually add it and access it through an ENV variable; a bit dirty but as long as it does the job, not sure how hard this might be.

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