()
| 187 | } |
| 188 | |
| 189 | export async function getDebugInfo() { |
| 190 | try { |
| 191 | const paths = await getPaths(); |
| 192 | const auth = await api.get('/debug/auth').then(res => res.data); |
| 193 | const sync = await getSyncStatus(); |
| 194 | const health = await checkHealth(); |
| 195 | |
| 196 | return { |
| 197 | paths, |
| 198 | auth, |
| 199 | sync, |
| 200 | serverHealthy: health, |
| 201 | clientVersion: process.env.NEXT_PUBLIC_APP_VERSION || 'unknown', |
| 202 | }; |
| 203 | } catch (error) { |
| 204 | console.error('Failed to fetch debug info:', error); |
| 205 | return { error: 'Failed to fetch debug info' }; |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | export async function getDebugPaths(): Promise<any> { |
| 210 | const { data } = await api.get('/paths'); |
no test coverage detected