first commit

This commit is contained in:
Mathieu BOURBON
2026-04-18 16:24:44 +02:00
commit fbb6138c28
72 changed files with 3509 additions and 0 deletions

28
next.config.mjs Normal file
View 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;