Files
parodesign/next.config.js
David Blanc Brioir 18ba831a2a Initial commit: Chat-to-diagram v1.0
- Chat interface with OpenAI GPT integration
- Automatic diagram generation from text descriptions
- Tldraw canvas with Dagre layout engine
- REST API instead of WebSocket approach

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-09 23:23:56 +01:00

16 lines
468 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
// Disable React Strict Mode to prevent WebSocket disconnections during development
// Strict Mode causes double mounting/unmounting which closes WebSocket connections
reactStrictMode: false,
webpack: (config) => {
config.externals.push({
'utf-8-validate': 'commonjs utf-8-validate',
'bufferutil': 'commonjs bufferutil',
})
return config
},
}
module.exports = nextConfig