Major changes across backend, frontend, infrastructure: - Provider system with model selection (Google, DeepL, OpenAI, Ollama, Google Cloud) - Admin panel: user management, pricing, settings - Glossary system with CSV import/export - Subscription and tier quota management - Security hardening (rate limiting, API key auth, path traversal fixes) - Docker compose for dev, prod, and IONOS deployment - Alembic migrations for new tables - Frontend: dashboard, pricing page, landing page, i18n (en/fr) - Test suite and verification scripts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
22 lines
798 B
TypeScript
22 lines
798 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
// Cible du backend pour le proxy : résolvable depuis le process Node (Next), pas depuis le navigateur.
|
|
// En Docker Compose : http://backend:8000. En local : http://127.0.0.1:8000
|
|
const backendUrl = (process.env.BACKEND_URL || "http://127.0.0.1:8000").replace(/\/$/, "");
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Turbopack ne résout pas le require() dynamique de lightningcss → "Module not found".
|
|
// Toujours lancer avec Webpack : npm run dev ou next dev --webpack (pas "next dev" seul).
|
|
serverExternalPackages: ["lightningcss", "@tailwindcss/postcss", "@tailwindcss/node"],
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: `${backendUrl}/api/:path*`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|