Enable console debugging and add debug statements
- Enable console logging in vite.config.ts: - Set drop_console to false - Disabled pure_funcs stripping for console.log - Changed esbuild to only drop debugger, keep console - Add debug logging to auth-gate.ts: - Log setAuthInitialized calls - Add debug logging to useSavedStations.ts: - Log hook invocations - Log query function execution and results - Added retry configuration - Add debug logging to StationsPage.tsx: - Log component renders - Log useSavedStations result state These logs will show us what's happening with auth initialization and query state transitions that are causing the React DOM removeChild error. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -57,9 +57,9 @@ export default defineConfig({
|
||||
minify: 'terser',
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true, // Remove console logs in production
|
||||
drop_console: false, // DEBUGGING: Keep console logs enabled
|
||||
drop_debugger: true,
|
||||
pure_funcs: ['console.log', 'console.info', 'console.debug'],
|
||||
// pure_funcs: ['console.log', 'console.info', 'console.debug'], // DEBUGGING: Disabled for console output
|
||||
},
|
||||
mangle: {
|
||||
safari10: true, // Ensure Safari 10 compatibility
|
||||
@@ -71,6 +71,6 @@ export default defineConfig({
|
||||
},
|
||||
// Production optimizations
|
||||
esbuild: {
|
||||
drop: ['console', 'debugger'], // Additional cleanup
|
||||
drop: ['debugger'], // DEBUGGING: Keep console, only drop debugger
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user