mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
35 lines
776 B
JavaScript
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); |