forked from trycompai/comp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
20 lines (20 loc) · 1.16 KB
/
buildspec.yml
File metadata and controls
20 lines (20 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Prepare standalone build
- echo "Preparing standalone build..."
- echo "DEBUG - Checking what Next.js built..."
- ls -la .next/
- ls -la .next/standalone/ || echo "No standalone directory"
- echo "DEBUG - Checking if static files exist..."
- ls -la .next/static/ || echo "No static directory found"
- echo "DEBUG - Copying static files to standalone..."
- cp -r public .next/standalone/apps/app/ || echo "No public folder"
- cp -r .next/static .next/standalone/apps/app/.next/ || echo "No .next/static directory"
- echo "DEBUG - Final verification..."
- ls -la .next/standalone/ || echo "Standalone empty"
- echo "Looking for static files in standalone..."
- find .next/standalone -type f -name "*.css" | head -5 || echo "No CSS files found"
- find .next/standalone -type f -name "*.js" | head -5 || echo "No JS files found"
- find .next/standalone -type f -name "*.ttf" | head -3 || echo "No font files found"
- echo "Checking specific paths..."
- ls -la .next/standalone/apps/app/.next/static/chunks/ || echo "No chunks directory"
- ls -la .next/standalone/apps/app/.next/static/media/ || echo "No media directory"
- ls -la .next/standalone/apps/app/public/ || echo "No public directory"