fix(stage-web): typecheck

This commit is contained in:
Makito
2025-08-25 22:17:52 +09:00
parent 9924282e80
commit af61a84777
@@ -58,7 +58,8 @@ onMounted(async () => {
}
try {
const res = await fetch(`${providerConfig.baseUrl.endsWith('/') ? providerConfig.baseUrl.slice(0, -1) : providerConfig.baseUrl}/health`, {
const baseUrl = (providerConfig.baseUrl as string | undefined) ?? ''
const res = await fetch(`${baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl}/health`, {
method: 'GET',
headers: {
'player2-game-key': 'airi',