From f2794cf396046766fe091023cdd5cdecff02dc2e Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Sun, 11 Jan 2026 13:17:34 +0000 Subject: [PATCH] Fix docker.nix to copy hidden .next directory The glob * doesn't include hidden files/directories. Use /. suffix to copy all contents including .next from standalone output. Co-Authored-By: Claude Opus 4.5 --- docker.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker.nix b/docker.nix index 36e9177..fb9c2c6 100644 --- a/docker.nix +++ b/docker.nix @@ -54,10 +54,10 @@ let mkdir -p $out # Copy standalone server (self-contained with minimal node_modules) - cp -r .next/standalone/* $out/ + # Use /. to include hidden directories like .next + cp -r .next/standalone/. $out/ # Copy static assets (Next.js standalone requires these separately) - mkdir -p $out/.next cp -r .next/static $out/.next/static # Copy public assets