mirror of
https://github.com/arthur-pbty/hub.git
synced 2026-06-03 15:07:28 +02:00
feat: configurer Docker pour le build et l'exécution de l'application Next.js
This commit is contained in:
+8
-1
@@ -1,7 +1,14 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
// Mode production strict pour React (détecte les erreurs tôt)
|
||||
reactStrictMode: true,
|
||||
|
||||
// Build standalone pour Docker → image finale légère et indépendante
|
||||
output: "standalone",
|
||||
|
||||
// Compression des pages côté serveur (gzip/brotli)
|
||||
compress: true,
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user