fix: resolve Docker build failures for frontend

- Remove @radix-ui/react-badge (package inexistant sur npm) du package.json
- Rename next.config.ts → next.config.mjs (Next.js 14 ne supporte pas .ts)
- Générer package-lock.json requis par npm ci dans le Dockerfile
- Ajouter next-env.d.ts (généré par Next.js build, requis pour TypeScript)

Build Next.js vérifié : 6 pages générées (/, /login, /dashboard, /clients, /audits)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-21 17:37:32 +01:00
parent d7719db97d
commit 211fbefd53
4 changed files with 7216 additions and 4 deletions

5
frontend/next-env.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View File

@@ -1,6 +1,5 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
async rewrites() {
return [

7209
frontend/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,6 @@
"react": "^18",
"react-dom": "^18",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-badge": "^1.0.0",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-label": "^2.0.2",