File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,20 @@ phases:
5050
5151 - echo "Checking build output..."
5252 - ls -la dist/
53- - ls -la dist/src/
54- - ' [ -f "dist/src/main.js" ] || { echo "❌ main.js not found in dist/src "; exit 1; }'
53+ - ls -la dist/apps/api/src/ || ls -la dist/ src/
54+ - ' [ -f "dist/apps/api/ src/main.js" ] || [ -f "dist/src/main.js" ] || { echo "❌ main.js not found"; exit 1; }'
5555
5656 - mkdir -p ../docker-build
57- - cp -r dist/* ../docker-build/
57+ # Handle both output structures (dist/apps/api/src or dist/src)
58+ - |
59+ if [ -d "dist/apps/api/src" ]; then
60+ echo "Using composite output structure..."
61+ cp -r dist/apps/api/* ../docker-build/
62+ else
63+ echo "Using standard output structure..."
64+ cp -r dist/* ../docker-build/
65+ fi
5866 - cp -r prisma ../docker-build/
59-
6067 - echo "Verifying copied files..."
6168 - ls -la ../docker-build/
6269 - ls -la ../docker-build/src/
You can’t perform that action at this time.
0 commit comments