Vergessenen Debug-Aufruf an 127.0.0.1 entfernt
AuthContext schickte bei jedem Seitenaufruf einen Debug-Eintrag an http://127.0.0.1:7284 (Überbleibsel einer Fehlersuche). Live landete er im Nichts; neuere Browser können für solche Aufrufe ins lokale Netzwerk eine Rückfrage anzeigen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d684aea576
commit
889a2f42eb
1 file changed
-18
@@ -15,24 +15,6 @@ const AuthContext = createContext()
|
||||
|
||||
const DEMO_MODE = isDemoMode
|
||||
|
||||
// #region agent log
|
||||
if (typeof window !== 'undefined') {
|
||||
fetch('http://127.0.0.1:7284/ingest/0747da40-b90b-4354-9b84-c9b550a81ec9', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', 'X-Debug-Session-Id': '252827' },
|
||||
body: JSON.stringify({
|
||||
sessionId: '252827',
|
||||
runId: 'pre-fix',
|
||||
hypothesisId: 'B',
|
||||
location: 'AuthContext.jsx:init',
|
||||
message: 'Auth DEMO_MODE resolved',
|
||||
data: { DEMO_MODE, PROJECT_ID: PROJECT_ID ? PROJECT_ID.slice(0, 8) : '' },
|
||||
timestamp: Date.now(),
|
||||
}),
|
||||
}).catch(() => {})
|
||||
}
|
||||
// #endregion
|
||||
|
||||
function clearStaleAppwriteSessions() {
|
||||
if (typeof window === 'undefined' || !window.localStorage) return
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user