revert: Remove debugging infrastructure while keeping bug fixes
Removed: - ErrorBoundary component and all error boundary wrapping - Debug console.log statements from useReasoningTranslation - Debug useEffect in DashboardPage - Dev mode Dockerfile (Dockerfile.kubernetes.dev) - Dev mode Tilt configuration - Enhanced vite watcher config (depth, awaitWriteFinish, HMR overlay) Kept actual bug fixes: - String() coercion in translation functions - useMemo/useCallback for formatters - Null guards in components - Basic vite ignored patterns (node_modules, dist, .git) - Conditional rendering in DashboardPage
This commit is contained in:
14
Tiltfile
14
Tiltfile
@@ -48,25 +48,13 @@ def python_live_update(service_name, service_path):
|
||||
# =============================================================================
|
||||
# FRONTEND (React + Vite)
|
||||
# =============================================================================
|
||||
# DEV MODE: Uses Vite dev server with hot reload and unminified React
|
||||
# PROD MODE: Change dockerfile to './frontend/Dockerfile.kubernetes' for production builds
|
||||
docker_build(
|
||||
'bakery/dashboard',
|
||||
context='./frontend',
|
||||
dockerfile='./frontend/Dockerfile.kubernetes.dev', # DEV: Vite dev server
|
||||
dockerfile='./frontend/Dockerfile.kubernetes',
|
||||
live_update=[
|
||||
# Fall back to full rebuild if package.json changes
|
||||
fall_back_on(['./frontend/package.json', './frontend/package-lock.json']),
|
||||
|
||||
# Sync source code changes - Vite will hot reload
|
||||
sync('./frontend/src', '/app/src'),
|
||||
sync('./frontend/public', '/app/public'),
|
||||
sync('./frontend/index.html', '/app/index.html'),
|
||||
sync('./frontend/vite.config.ts', '/app/vite.config.ts'),
|
||||
sync('./frontend/tsconfig.json', '/app/tsconfig.json'),
|
||||
|
||||
# Reinstall dependencies if package.json changes
|
||||
run('npm ci', trigger=['./frontend/package.json', './frontend/package-lock.json']),
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user