-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy-debug.js
More file actions
30 lines (25 loc) · 930 Bytes
/
deploy-debug.js
File metadata and controls
30 lines (25 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env node
console.log('=== Deployment Debug Info ===');
console.log('Node version:', process.version);
console.log('Platform:', process.platform);
console.log('Architecture:', process.arch);
console.log('Current working directory:', process.cwd());
console.log('Environment:', process.env.NODE_ENV || 'development');
// Check if dist folder exists
const fs = require('fs');
const path = require('path');
const distPath = path.join(process.cwd(), 'dist');
if (fs.existsSync(distPath)) {
console.log('✅ dist folder exists');
const files = fs.readdirSync(distPath);
console.log('dist contents:', files);
const indexPath = path.join(distPath, 'index.html');
if (fs.existsSync(indexPath)) {
console.log('✅ index.html exists in dist');
} else {
console.log('❌ index.html missing in dist');
}
} else {
console.log('❌ dist folder does not exist');
}
console.log('=== End Debug Info ===');