Files
n3wt-school/Front-End/next.config.mjs

35 lines
776 B
JavaScript

import createNextIntlPlugin from 'next-intl/plugin';
import pkg from "./package.json" assert { type: "json" };
const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
webpack: (config, { isServer }) => {
// Configuration pour améliorer le hot reload dans Docker
config.watchOptions = {
poll: 1000,
aggregateTimeout: 300,
}
return config
},
experimental: {
instrumentationHook: true,
},
env: {
NEXT_PUBLIC_APP_VERSION: pkg.version,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'i.pravatar.cc',
port: '',
pathname: '/**',
},
],
},
};
export default withNextIntl(nextConfig);