File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,16 @@ jobs:
3939 env :
4040 WEBHOOK_URL : ${{ secrets.DISCORD_WEBHOOK_URL }}
4141 run : |
42- echo "// This file is auto-generated during deployment" > config.js
43- echo "window.DISCORD_WEBHOOK_URL = \"$WEBHOOK_URL\";" >> config.js
42+ # Create config with debugging
43+ echo 'console.log("Config script starting");' > config.js
44+ echo 'window.DISCORD_WEBHOOK_URL = "'"$WEBHOOK_URL"'";' >> config.js
45+ echo 'console.log("Config script finished - webhook URL:", window.DISCORD_WEBHOOK_URL);' >> config.js
4446
4547 echo "Config file updated. Contents (webhook hidden):"
4648 cat config.js | sed 's|https://[^"]*|[WEBHOOK_URL_HIDDEN]|'
49+
50+ echo "File exists and is readable:"
51+ ls -l config.js
4752
4853 - name : Setup Pages
4954 uses : actions/configure-pages@v4
Original file line number Diff line number Diff line change 7777 }
7878 }
7979 </ style >
80- < script src ="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.7/handlebars.min.js "> </ script >
80+ < script >
81+ // Add debugging for script load order
82+ console . log ( 'Start of head scripts' ) ;
83+ window . addEventListener ( 'DOMContentLoaded' , ( ) => {
84+ console . log ( 'DOMContentLoaded - webhook URL:' , window . DISCORD_WEBHOOK_URL ) ;
85+ } ) ;
86+ </ script >
8187 < script src ="./config.js "> </ script >
88+ < script > console . log ( 'After config.js load - webhook URL:' , window . DISCORD_WEBHOOK_URL ) ; </ script >
89+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.7/handlebars.min.js "> </ script >
90+ < script type ="module " crossorigin src ="./assets/main.tsx.ed6f4f5c.js "> </ script >
91+ < link rel ="stylesheet " href ="./assets/main.css ">
8292 </ head >
8393 < body class ="is-preload ">
8494 <!-- Toast Container -->
You can’t perform that action at this time.
0 commit comments