Setup complet de l'infrastructure projet : - Frontend Nuxt 4 (SSR, TypeScript, i18n, Pinia, TailwindCSS) - Backend Laravel 12 API-only avec middleware X-API-Key et CORS - Design tokens (sky-dark, sky-accent, sky-text) et polices (Merriweather, Inter) - Documentation planning et implementation artifacts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
45 lines
741 B
TypeScript
45 lines
741 B
TypeScript
export default defineNuxtConfig({
|
|
devtools: { enabled: true },
|
|
|
|
ssr: true,
|
|
|
|
future: {
|
|
compatibilityVersion: 4,
|
|
},
|
|
|
|
modules: [
|
|
'@nuxtjs/i18n',
|
|
'@pinia/nuxt',
|
|
'@nuxt/image',
|
|
'@nuxtjs/sitemap',
|
|
],
|
|
|
|
css: ['~/assets/css/main.css'],
|
|
|
|
postcss: {
|
|
plugins: {
|
|
tailwindcss: {},
|
|
autoprefixer: {},
|
|
},
|
|
},
|
|
|
|
i18n: {
|
|
locales: ['fr', 'en'],
|
|
defaultLocale: 'fr',
|
|
strategy: 'prefix_except_default',
|
|
},
|
|
|
|
app: {
|
|
pageTransition: { name: 'page', mode: 'out-in' },
|
|
},
|
|
|
|
runtimeConfig: {
|
|
public: {
|
|
apiUrl: process.env.NUXT_PUBLIC_API_URL || 'http://localhost:8000/api',
|
|
apiKey: process.env.NUXT_PUBLIC_API_KEY || '',
|
|
},
|
|
},
|
|
|
|
compatibilityDate: '2025-01-01',
|
|
})
|