Next.js Discord

Discord Forum

Production build failing in BitBucket Pipelines, SSG tries to connect to Redis

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Barbary LionOP
How do people get around the issue of the static site generation in the build process from failing when using Redis in the application? Pipelines (similar to GH Actions) whilst building my Docker container attempts to connect to Redis that I use for user sessions. Using the app router, and I'm fine with not having anything statically generated at build time as this application is an in-house console tool. I've tried adding a Redis service container to the pipeline, but that still fails (I'd rather not rely on Bitbucket providing the service container because their documentation is so poor on the subject).

0 Replies