- Complete Next.js 14 app with TypeScript and Tailwind CSS - ESP32 serial communication via API routes - Real-time UWB positioning visualization - Interactive 2D warehouse mapping with Canvas - Device connection interface with auto-detection - AT command parsing for UWBHelper library integration - Clean project structure with comprehensive documentation
12 lines
No EOL
275 B
JavaScript
12 lines
No EOL
275 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
webpack: (config) => {
|
|
// Handle serialport native bindings for server-side
|
|
config.externals.push({
|
|
'serialport': 'commonjs serialport'
|
|
});
|
|
return config;
|
|
}
|
|
}
|
|
|
|
module.exports = nextConfig |