fix: resolve Turbopack build issues in CI environment

Problem:
- Turbopack file tracing caused by process.cwd() in upload.ts
- Google fonts download failures in CI network environment
- Module resolution errors for @vercel/turbopack-next

Solutions:
- Add turbopackIgnore comment to process.cwd() call
- Temporarily disable Google fonts to avoid network dependencies
- Use system fonts as fallback for CI builds
- Switch to node:20-alpine for faster SSH installation
- Add SSH debugging information

This should resolve the 493 build errors and enable successful CI deployment.
This commit is contained in:
张翔
2026-03-30 13:13:41 +08:00
parent 9eb2269d4f
commit 42d0acfa6c
3 changed files with 43 additions and 38 deletions
+5 -1
View File
@@ -132,9 +132,13 @@ steps:
- ls -la dist/
- echo "Deploying to production"
- mkdir -p ~/.ssh
- echo "SSH key length: $(echo $SSH_PRIVATE_KEY | wc -c)"
- echo "First 50 chars of SSH key: $(echo $SSH_PRIVATE_KEY | cut -c1-50)"
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo "Pre-deployment checks"
- echo "SSH key file created, checking permissions:"
- ls -la ~/.ssh/
- echo "Testing SSH connection..."
- ssh -o StrictHostKeyChecking=no root@139.155.109.62 "echo 'Server connection OK'"
- ssh -o StrictHostKeyChecking=no root@139.155.109.62 "df -h | grep -E '/$|/home'"
- echo "Syncing build artifacts to production server"