feat: rabbit domain

This commit is contained in:
Shusui MOYATANI
2024-01-08 16:58:58 +09:00
parent b51e4ee445
commit c29f348d0e
2 changed files with 9 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ jobs:
- name: Test - name: Test
run: npm run test run: npm run test
- name: Build - name: Build
run: npm run build -- --base="/rabbit/" run: npm run build
env: env:
VITE_COMMIT: ${{ steps.hash.outputs.sha_short }} VITE_COMMIT: ${{ steps.hash.outputs.sha_short }}
- name: Check license - name: Check license

View File

@@ -21,6 +21,14 @@
<meta property="og:locale" content="ja_JP" /> <meta property="og:locale" content="ja_JP" />
<link rel="manifest" href="manifest.json" /> <link rel="manifest" href="manifest.json" />
<link rel="shortcut icon" type="image/png" href="./images/rabbit_256.png" /> <link rel="shortcut icon" type="image/png" href="./images/rabbit_256.png" />
<script>
if (location.hostname === 'syusui-s.github.io' && location.pathname.startsWith('/rabbit/')) {
const url = new URL(location.href);
url.host = 'rabbit.syusui.net';
url.pathname = '/';
location.href = url.href;
}
</script>
<title>Rabbit</title> <title>Rabbit</title>
</head> </head>
<body> <body>