diff --git a/app/layout.tsx b/app/layout.tsx index a9cc944..2f39ee5 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -8,6 +8,7 @@ import { Providers } from "./providers"; const GA_TRACKING_ID = "G-E272LVVQRD"; export const metadata: Metadata = { + metadataBase: new URL(process.env.NEXT_PUBLIC_FRONTEND_URL || 'https://dsp5-archi-o24a-15m-g3.fr'), title: "Thé Tip Top - Jeu Concours", description: "Participez au grand jeu-concours Thé Tip Top et gagnez des lots exceptionnels ! 100% de tickets gagnants.", keywords: "thé, concours, jeu, tip top, nice, gain, lot, infuseur, coffret", diff --git a/sonar-project.properties b/sonar-project.properties index 6b504d8..8153c25 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -21,7 +21,7 @@ sonar.javascript.lcov.reportPaths=coverage/lcov.info sonar.typescript.lcov.reportPaths=coverage/lcov.info # Paramètres TypeScript -sonar.typescript.tsconfigPath=tsconfig.json +sonar.typescript.tsconfigPath=tsconfig.sonar.json # Niveau de logs sonar.log.level=INFO diff --git a/tsconfig.sonar.json b/tsconfig.sonar.json new file mode 100644 index 0000000..272a76c --- /dev/null +++ b/tsconfig.sonar.json @@ -0,0 +1,41 @@ +{ + "compilerOptions": { + "target": "ES2017", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": [ + "./*" + ] + } + }, + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + "**/*.mts" + ], + "exclude": [ + "node_modules", + ".next" + ] +}