first commit
This commit is contained in:
28
next.config.mjs
Normal file
28
next.config.mjs
Normal file
@@ -0,0 +1,28 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
output: 'standalone', // Optimisé pour Docker
|
||||
experimental: {
|
||||
// Permet l'utilisation de paquets natifs côté serveur (ping, bonjour, etc.)
|
||||
serverComponentsExternalPackages: [
|
||||
'ping',
|
||||
'bonjour-service',
|
||||
'@prisma/client',
|
||||
],
|
||||
},
|
||||
// Empêche le bundling des modules réseau côté client
|
||||
webpack: (config, { isServer }) => {
|
||||
if (!isServer) {
|
||||
config.resolve.fallback = {
|
||||
...config.resolve.fallback,
|
||||
net: false,
|
||||
dns: false,
|
||||
fs: false,
|
||||
child_process: false,
|
||||
};
|
||||
}
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user