Skip to content

Commit 7653cbd

Browse files
committed
fix(post-build): update post-build script to include frontend build copying logic
1 parent cdccdcf commit 7653cbd

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

docs/SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,6 @@ Content-Security-Policy:
204204

205205
---
206206

207-
**Last Updated**: June 29, 2025
207+
**Last Updated**: June 30, 2025
208208
**Security Level**: Enhanced
209-
**Next Review**: July 29, 2025
209+
**Next Review**: July 30, 2025

scripts/post-build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55

66
echo "🎯 Post-build cleanup..."
77

8+
# Copy frontend build output to root build directory
9+
if [ -d "frontend/dist" ]; then
10+
echo "📦 Copying frontend build to root build directory..."
11+
# Ensure build directory exists
12+
mkdir -p build
13+
# Copy all files from frontend/dist to build, preserving existing files
14+
cp -r frontend/dist/* build/ 2>/dev/null || true
15+
echo "✅ Frontend build copied successfully"
16+
else
17+
echo "⚠️ Warning: frontend/dist directory not found"
18+
fi
19+
820
# Remove build lock files
921
rm -f .building
1022
rm -f frontend/.building 2>/dev/null || true

0 commit comments

Comments
 (0)