feat: Add Docker support with development and production configurations
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
// Allow external connections in development
|
||||
experimental: {
|
||||
serverComponentsExternalPackages: ['better-sqlite3'],
|
||||
},
|
||||
// Configure for Docker development
|
||||
...(process.env.NODE_ENV === 'development' && {
|
||||
env: {
|
||||
HOSTNAME: '0.0.0.0',
|
||||
},
|
||||
}),
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user