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

redis connection options issues #3

Open
0x77dev opened this issue Mar 25, 2024 · 2 comments
Open

redis connection options issues #3

0x77dev opened this issue Mar 25, 2024 · 2 comments

Comments

@0x77dev
Copy link

0x77dev commented Mar 25, 2024

This issue consists of two parts

  1. When Redis connection options are specified in nuxt.config.ts, it attempts to connect to Redis during nuxt build, causing the build to block on connection retries. This can make building the app inside a Dockerfile nearly impossible. When concierge.redis is undefined it builds just fine.

  2. The current handling of NUXT_REDIS_* environment variables is not very convenient. It would be more practical to define REDIS_URL or NUXT_REDIS_URL using the redis:// URI scheme and search parameters for custom io-redis configuration.

https://github.com/genu/nuxt-concierge/blob/master/src/module.ts#L42-L44

@0x77dev
Copy link
Author

0x77dev commented Mar 25, 2024

In some cases, if DNS resolves to an IPv6 address for NUXT_REDIS_HOST, it may not work because the family for io-redis is not specified. This prevents deploying the application when customizing concierge.redis, leading to infinite connection retries and never-ending builds.

To partially address this with the current env convention, adding NUXT_REDIS_IP_FAMILY to set concierge.redis.family would help.

References:

@0x77dev
Copy link
Author

0x77dev commented Mar 25, 2024

Also, thanks for the nice project! Hopefully, it can become a popular solution for queues and scheduling in Nuxt. I've used BullMQ in several production projects, finding it reliable and battle-tested. This module offers an incredible nuxt developer experience! And just a side note: It would be cool to have both a concierge folder and its customizable sub-folder locations for adhering to per-project conventions.

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

No branches or pull requests

1 participant