From c490556a022813c1ceaa854af5bc4758edb819fb Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Sat, 6 Jun 2026 18:31:20 -0400 Subject: [PATCH] fix: copy static assets into standalone dir after next build next build with output:standalone does not automatically copy .next/static or public into .next/standalone/. The standalone server.js looks for them at __dirname/.next/static and __dirname/public, so they must be copied there post-build. Co-Authored-By: Claude Sonnet 4.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f535165..0bea7ed 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "next build", + "build": "next build && cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public", "check": "eslint . && tsc --noEmit", "db:generate": "drizzle-kit generate", "db:migrate": "bun src/server/db/migrate.ts",