Docker image build fails: prerendering /c/[...slug] needs a database #121
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba#121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
docker build .fails on a clean checkout ofdevelopment(seen at6146cf9), in the build stage'snpm run build:During the build, Next prerenders
/c/[...slug]and with it the cached category tree (readCategoryNodes). The image build has noDATABASE_URL, sosrc/db.tsgets an empty connection string and the build fails. Local builds and the e2e build have a database, which is why they pass.Version 1.1.1 still built, so this came in with a later change to the category pages or the category tree cache. A release cannot be built until this is fixed (ADR-0014).
Found while working on #109: the restore command could not be checked inside a built image because of this.
To reproduce:
git worktree add /tmp/k development && cd /tmp/k && docker build --target build .Duplicate of #134, fixed in
14a0fe3(generateMetadata awaits params before loading the category tree).docker build --target buildon development at6d295depasses again. A check that catches this before a release follows in a new ticket.