diff --git a/deploy_gb.sh b/deploy_gb.sh index c95ddd7..9aef5cc 100644 --- a/deploy_gb.sh +++ b/deploy_gb.sh @@ -62,6 +62,14 @@ if ! ss -tln | grep -q ':5001 '; then exit 1 fi +# 3.5 Fix Blazor WASM runtime filename mismatch +# ASP.NET Core 10 uses blazor.webassembly.js but pages reference blazor.web.js +echo "=== Fixing Blazor WASM Runtime Filename ===" +if [ -f "$DEPLOY_DIR/wwwroot/_framework/blazor.webassembly.js" ] && [ ! -f "$DEPLOY_DIR/wwwroot/_framework/blazor.web.js" ]; then + ln -s blazor.webassembly.js "$DEPLOY_DIR/wwwroot/_framework/blazor.web.js" + echo "✓ Created symlink: blazor.web.js -> blazor.webassembly.js" +fi + # 4. Start the new app on the target port echo "=== Starting New App on Port $TARGET_PORT ===" cd "$DEPLOY_DIR"