From ce1ec9030dac7ee4d5242acd8a732aecd7f8dfb6 Mon Sep 17 00:00:00 2001 From: streaper2 Date: Mon, 2 Mar 2026 14:34:27 +0100 Subject: [PATCH] feat: add commands to Nixpacks build to copy static assets and Next.js static files for standalone output. --- nixpacks.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixpacks.toml b/nixpacks.toml index f2dd253..6742ac9 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,5 +1,10 @@ [phases.build] -cmds = ["npm run build"] +cmds = [ + "npm run build", + "mkdir -p .next/standalone/public", + "cp -r public/* .next/standalone/public/ || true", + "cp -r .next/static .next/standalone/.next/static" +] [phases.setup] nixPkgs = ["nodejs_22", "npm-9_x", "openssl"]