fix: symlink blazor.web.js to blazor.webassembly.js for ASP.NET Core 10 compatibility
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m49s
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m49s
Problem: ASP.NET Core 10 WASM runtime file is named blazor.webassembly.js but Blazor pages still reference blazor.web.js, causing 404 Not Found errors and complete failure to load admin UI. Solution: In deploy_gb.sh, create symlink before starting the app: ln -s blazor.webassembly.js blazor.web.js This allows both filenames to work, ensuring backward compatibility. Result: WASM runtime loads correctly in deployed environments. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user