fix: bundle web assets
release / build-web (push) Has been cancelled
release / build-bundles (aarch64-linux-gnu-gcc, arm64, linux, ubuntu-latest, linux-arm64) (push) Has been cancelled
release / build-bundles (amd64, darwin, macos-15-large, macos-x64) (push) Has been cancelled
release / build-bundles (amd64, linux, ubuntu-latest, linux-x64) (push) Has been cancelled
release / build-bundles (amd64, windows, windows-latest, windows-x64) (push) Has been cancelled
release / build-bundles (arm64, darwin, macos-14, macos-arm64) (push) Has been cancelled

This commit is contained in:
Carlos Florêncio
2026-02-16 12:14:40 +00:00
parent fc1c328e4a
commit 00ddd3bfe1
+5 -3
View File
@@ -46,11 +46,13 @@ if [ -d "$PNPM_HOISTED" ] && [ -d "$NEXT_MODULES" ]; then
echo "Hoisted pnpm packages into web/node_modules/"
fi
mkdir -p "$OUT_DIR/.next"
cp -R "$WEB_DIR/.next/static" "$OUT_DIR/.next/"
# Static assets and public/ must be alongside server.js (inside web/)
# so Next.js can serve them. The standalone trace puts build artifacts
# at web/.next/ but doesn't include static/ — copy it there.
cp -R "$WEB_DIR/.next/static" "$OUT_DIR/web/.next/"
if [ -d "$WEB_DIR/public" ]; then
cp -R "$WEB_DIR/public" "$OUT_DIR/public"
cp -R "$WEB_DIR/public" "$OUT_DIR/web/public"
fi
echo "Web bundle packaged at $OUT_DIR"