You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
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.
This issue consists of two parts
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. Whenconcierge.redis
is undefined it builds just fine.The current handling of
NUXT_REDIS_*
environment variables is not very convenient. It would be more practical to defineREDIS_URL
orNUXT_REDIS_URL
using theredis://
URI scheme and search parameters for customio-redis
configuration.https://github.com/genu/nuxt-concierge/blob/master/src/module.ts#L42-L44
The text was updated successfully, but these errors were encountered: