We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48f8348 commit 7cb8f22Copy full SHA for 7cb8f22
1 file changed
.github/workflows/deploy.yml
@@ -34,8 +34,26 @@ jobs:
34
- name: Build
35
run: npm run build
36
37
+ - name: Debug build output
38
+ run: |
39
+ echo "Root files:"
40
+ ls -la
41
+ echo "Dist files:"
42
+ ls -la dist || true
43
+ echo "Dist client files:"
44
+ ls -la dist/client || true
45
+
46
- name: Copy SPA fallback
- run: cp dist/client/index.html dist/client/404.html
47
48
+ if [ -f dist/client/index.html ]; then
49
+ cp dist/client/index.html dist/client/404.html
50
+ elif [ -f dist/index.html ]; then
51
+ cp dist/index.html dist/404.html
52
+ else
53
+ echo "No index.html found"
54
+ find dist -maxdepth 3 -type f
55
+ exit 1
56
+ fi
57
58
- name: Upload GitHub Pages artifact
59
uses: actions/upload-pages-artifact@v3
0 commit comments