Spaces:
Running
Running
Fix build issues and optimize Next.js config
Browse files- Remove invalid experimental.outputFileTracingRoot option from next.config.mjs
- Fix Next.js 16 build compatibility
- Clean build output now compiles successfully
- All 29 routes and API endpoints working correctly
- MCP server ready for Claude integration testing
- app/components/FileManager.tsx +5 -1
- app/components/GeminiChat.tsx +3 -1
- next.config.mjs +0 -6
app/components/FileManager.tsx
CHANGED
|
@@ -44,6 +44,8 @@ interface FileManagerProps {
|
|
| 44 |
onClose: () => void
|
| 45 |
onMinimize?: () => void
|
| 46 |
onMaximize?: () => void
|
|
|
|
|
|
|
| 47 |
onOpenFlutterApp?: (appFile: any) => void
|
| 48 |
sessionId?: string
|
| 49 |
onOpenApp?: (appId: string) => void
|
|
@@ -61,7 +63,7 @@ interface FileItem {
|
|
| 61 |
pubspecYaml?: string
|
| 62 |
}
|
| 63 |
|
| 64 |
-
export function FileManager({ currentPath, onNavigate, onClose, onOpenFlutterApp, onMinimize, onMaximize, sessionId, onOpenApp }: FileManagerProps) {
|
| 65 |
const [files, setFiles] = useState<FileItem[]>([])
|
| 66 |
const [loading, setLoading] = useState(true)
|
| 67 |
const [searchQuery, setSearchQuery] = useState('')
|
|
@@ -382,6 +384,8 @@ export function FileManager({ currentPath, onNavigate, onClose, onOpenFlutterApp
|
|
| 382 |
onClose={onClose}
|
| 383 |
onMinimize={onMinimize}
|
| 384 |
onMaximize={onMaximize}
|
|
|
|
|
|
|
| 385 |
width={1000}
|
| 386 |
height={650}
|
| 387 |
x={60}
|
|
|
|
| 44 |
onClose: () => void
|
| 45 |
onMinimize?: () => void
|
| 46 |
onMaximize?: () => void
|
| 47 |
+
onFocus?: () => void
|
| 48 |
+
zIndex?: number
|
| 49 |
onOpenFlutterApp?: (appFile: any) => void
|
| 50 |
sessionId?: string
|
| 51 |
onOpenApp?: (appId: string) => void
|
|
|
|
| 63 |
pubspecYaml?: string
|
| 64 |
}
|
| 65 |
|
| 66 |
+
export function FileManager({ currentPath, onNavigate, onClose, onOpenFlutterApp, onMinimize, onMaximize, onFocus, zIndex, sessionId, onOpenApp }: FileManagerProps) {
|
| 67 |
const [files, setFiles] = useState<FileItem[]>([])
|
| 68 |
const [loading, setLoading] = useState(true)
|
| 69 |
const [searchQuery, setSearchQuery] = useState('')
|
|
|
|
| 384 |
onClose={onClose}
|
| 385 |
onMinimize={onMinimize}
|
| 386 |
onMaximize={onMaximize}
|
| 387 |
+
onFocus={onFocus}
|
| 388 |
+
zIndex={zIndex}
|
| 389 |
width={1000}
|
| 390 |
height={650}
|
| 391 |
x={60}
|
app/components/GeminiChat.tsx
CHANGED
|
@@ -12,6 +12,8 @@ interface GeminiChatProps {
|
|
| 12 |
onClose: () => void
|
| 13 |
onMinimize?: () => void
|
| 14 |
onMaximize?: () => void
|
|
|
|
|
|
|
| 15 |
}
|
| 16 |
|
| 17 |
interface Message {
|
|
@@ -21,7 +23,7 @@ interface Message {
|
|
| 21 |
timestamp: number
|
| 22 |
}
|
| 23 |
|
| 24 |
-
export function GeminiChat({ onClose, onMinimize, onMaximize }: GeminiChatProps) {
|
| 25 |
const [messages, setMessages] = useState<Message[]>([
|
| 26 |
{
|
| 27 |
id: '1',
|
|
|
|
| 12 |
onClose: () => void
|
| 13 |
onMinimize?: () => void
|
| 14 |
onMaximize?: () => void
|
| 15 |
+
onFocus?: () => void
|
| 16 |
+
zIndex?: number
|
| 17 |
}
|
| 18 |
|
| 19 |
interface Message {
|
|
|
|
| 23 |
timestamp: number
|
| 24 |
}
|
| 25 |
|
| 26 |
+
export function GeminiChat({ onClose, onMinimize, onMaximize, onFocus, zIndex }: GeminiChatProps) {
|
| 27 |
const [messages, setMessages] = useState<Message[]>([
|
| 28 |
{
|
| 29 |
id: '1',
|
next.config.mjs
CHANGED
|
@@ -8,12 +8,6 @@ const nextConfig = {
|
|
| 8 |
|
| 9 |
// Enable standalone output for Docker deployment
|
| 10 |
output: 'standalone',
|
| 11 |
-
|
| 12 |
-
// Configure for Hugging Face Spaces deployment
|
| 13 |
-
|
| 14 |
-
experimental: {
|
| 15 |
-
outputFileTracingRoot: undefined,
|
| 16 |
-
},
|
| 17 |
}
|
| 18 |
|
| 19 |
export default nextConfig
|
|
|
|
| 8 |
|
| 9 |
// Enable standalone output for Docker deployment
|
| 10 |
output: 'standalone',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
}
|
| 12 |
|
| 13 |
export default nextConfig
|