From 06e6a96e3476e2c741effb9e65cf7c19c8099e84 Mon Sep 17 00:00:00 2001 From: Vivek Date: Thu, 21 May 2026 19:12:34 +0530 Subject: [PATCH] fix(deploy): include changelog/ in the production image webjs.dev/changelog renders "No entries yet." in production because the page reads `/changelog//*.md` at SSR time and the production Dockerfile copies only packages, examples, website, and docs into the image. Add COPY changelog ./changelog so the deployed website resolves the same tree it does locally. No code change in the page itself: readdir() still silently returns [] when the directory is missing, which keeps the local dev story intact for contributors who clone without the changelog/ folder. --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 888b1822..df6a98ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,6 +52,10 @@ COPY packages ./packages COPY examples ./examples COPY website ./website COPY docs ./docs +# website/app/changelog/page.ts reads ../../../changelog//*.md at +# SSR time. Without copying the changelog tree into the image, the +# deployed page renders "No entries yet." +COPY changelog ./changelog # --- 3. Build-time work -------------------------------------------------- # Blog: generate Prisma client (needs schema.prisma in context).