Major updates and improvements to BZZZ system
- Updated configuration and deployment files - Improved system architecture and components - Enhanced documentation and testing - Fixed various issues and added new features 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
31
deployments/bare-metal/config-ui/next.config.js
Normal file
31
deployments/bare-metal/config-ui/next.config.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
// Export as static site for embedding in Go binary
|
||||
output: 'export',
|
||||
trailingSlash: true,
|
||||
distDir: 'out',
|
||||
|
||||
// Disable image optimization for static export
|
||||
images: {
|
||||
unoptimized: true
|
||||
},
|
||||
|
||||
// Configure for embedded serving
|
||||
assetPrefix: process.env.NODE_ENV === 'production' ? '/setup' : '',
|
||||
basePath: process.env.NODE_ENV === 'production' ? '/setup' : '',
|
||||
|
||||
// API routes will be handled by Go server
|
||||
async rewrites() {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
return [
|
||||
{
|
||||
source: '/api/:path*',
|
||||
destination: 'http://localhost:8080/api/:path*'
|
||||
}
|
||||
]
|
||||
}
|
||||
return []
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = nextConfig
|
||||
Reference in New Issue
Block a user