update a lot of change since a while

This commit is contained in:
2026-01-22 10:29:36 +01:00
parent a4dcb95d83
commit e1c1475f10
78 changed files with 4200 additions and 534 deletions

View File

@@ -1,4 +1,6 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
import { fileURLToPath, URL } from 'node:url'
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
@@ -18,8 +20,41 @@ export default defineNuxtConfig({
},
},
// Auto-import des composants du dossier app/ sans prefixe de chemin
components: [
{ path: '~/components', pathPrefix: false }
],
// un chemin avec root pour aller chercher les fichiers qui ne sont pas dans app mais à la racine avec un @
vite: {
resolve: {
alias: {
'@root': fileURLToPath(new URL('./', import.meta.url))
}
}
},
//une barre fine en haut de la page lors des chargements
loadingIndicator: {
color: '#dd1e1eff',
background: '#fff',
height: '20px'
},
css: ['@/assets/scss/main.scss'],
runtimeConfig: {
// Server-side only (jamais exposé au client)
strapiToken: process.env.STRAPI_API_TOKEN || '',
// 🌍 Public (accessible dans le navigateur)
public: {
strapiUrl: process.env.NUXT_PUBLIC_STRAPI_URL || 'http://localhost:1337',
},
},
//configuration du module @nuxt/image
image: {
// Domaine de tes images Strapi / OVH
domains: [
@@ -55,4 +90,4 @@ export default defineNuxtConfig({
},
modules: ['@nuxt/image'],
})
})