Skip to content

Commit 1102c52

Browse files
elsighclaude
andcommitted
Remove Next.js canary workaround from test-logs-api.ts
Now that we're on stable Next.js 16.0.7, the SSR issue workaround is no longer needed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ce684a8 commit 1102c52

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

scripts/test-logs-api.ts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,16 @@ async function runTests() {
9393
console.log("✅ Screenshot endpoint working")
9494

9595
// Test 4: Logs page
96-
// Note: This test may fail with Next.js canary versions due to SSR issues
97-
// The API endpoints are more critical and are tested above
9896
console.log("\n📄 Testing /logs page...")
9997
const logsPageResponse = await fetch(`${mcpUrl}/logs`)
10098
if (!logsPageResponse.ok) {
101-
// Log warning but don't fail - this is a known issue with Next.js canary SSR
102-
console.log(`⚠️ Logs page returned ${logsPageResponse.status} - may be Next.js canary SSR issue`)
103-
console.log(" API endpoints work correctly, so this is non-critical")
104-
} else {
105-
const pageContent = await logsPageResponse.text()
106-
if (!pageContent.includes("<!DOCTYPE html>")) {
107-
console.log("⚠️ Logs page didn't return expected HTML")
108-
} else {
109-
console.log("✅ Logs page working")
110-
}
99+
throw new Error(`Logs page failed: ${logsPageResponse.status} ${logsPageResponse.statusText}`)
100+
}
101+
const pageContent = await logsPageResponse.text()
102+
if (!pageContent.includes("<!DOCTYPE html>")) {
103+
throw new Error("Logs page didn't return HTML")
111104
}
105+
console.log("✅ Logs page working")
112106

113107
// Test 5: Verify screenshot URLs in log data via API
114108
console.log("\n🖼️ Testing screenshot URLs in log entries...")

0 commit comments

Comments
 (0)