🙌
Blazor Web AssemblyアプリをGitHub Pagesで公開する
環境:
Windows 11 Home
Visutal studio 2022
Blazor Web Assemblyアプリを作成:

ビルド:

発行:


githubにリポジトリを作成:

作成したリポジトリをローカルにクローン:

発行したフォルダを開く:

wwwroot以下のファイルをコピー:

ローカルにクローンしたフォルダにコピペ:

add & commit & giuhubにpush:
git add .
git commit -m "init"
git push
index.htmlの修正:

ファイルの追加:

404.html
<!DOCTYPE html>
<html lang="ja">
<head>
<script>
window.location.pathname = "/AssemTest/";
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>NotFound</title>
</head>
<body>
</body>
</html>
.nojekyll(中身はなし)
github pagesの設定:

公開されました。

参考:
Discussion