mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 15:33:22 +00:00
47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
import createNextIntlPlugin from 'next-intl/plugin';
|
|
import { createRequire } from 'module';
|
|
const require = createRequire(import.meta.url);
|
|
const pkg = require('./package.json');
|
|
|
|
const withNextIntl = createNextIntlPlugin();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'standalone',
|
|
reactStrictMode: true,
|
|
experimental: {
|
|
instrumentationHook: true,
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'www.gravatar.com',
|
|
},
|
|
],
|
|
},
|
|
env: {
|
|
NEXT_PUBLIC_APP_VERSION: pkg.version,
|
|
NEXT_PUBLIC_API_URL:
|
|
process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080',
|
|
NEXT_PUBLIC_USE_FAKE_DATA: process.env.NEXT_PUBLIC_USE_FAKE_DATA || 'false',
|
|
AUTH_SECRET: process.env.AUTH_SECRET || 'false',
|
|
NEXTAUTH_URL: process.env.NEXTAUTH_URL || 'http://localhost:3000',
|
|
DOCUSEAL_API_KEY: process.env.DOCUSEAL_API_KEY,
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/documents/:path*',
|
|
destination: 'https://api.docuseal.com/v1/documents/:path*',
|
|
},
|
|
{
|
|
source: '/api/auth/:path*',
|
|
destination: '/api/auth/:path*', // Exclure les routes NextAuth des réécritures de proxy
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withNextIntl(nextConfig);
|