Files
List_ultimate/nuxt.config.ts
2026-02-26 21:29:34 +01:00

53 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: { enabled: true },
runtimeConfig: {
public: {
apiBase: 'http://localhost:81/wp-json/app/v1'
}
},
modules: ['@pinia/nuxt',
// '@nuxtjs/tailwindcss'
'@nuxtjs/i18n',
'nuxt-vue3-google-signin'
],
pinia: {},
i18n: {
strategy: 'prefix',
defaultLocale: 'fr',
langDir: 'locales',
customRoutes: 'config',
locales: [
{ code: 'fr', iso: 'fr-FR', name: 'Français', file:'fr.json' },
{ code: 'en', iso: 'en-US', name: 'English', file:'en.json' }
],
compilation: {
strictMessage: false, // autorise HTML dans les messages
escapeHtml: false // néchappe pas le HTML
}
// pages: {
// login: {
// fr: '/connexion',
// en: '/login'
// },
// signin: {
// fr: '/senregistrer',
// en: '/signin'
// }
// }
},
googleSignIn: {
clientId: '364175735286-8o0djchefske6j2ofgsibhsb7t4jk4l7.apps.googleusercontent.com',
},
css: ['@/assets/css/main.scss'],
routeRules: {
'/api-wp/**': { proxy: 'http://localhost:81/wp-json/app/v1/**',
changeOrigin: true, // Crucial pour éviter la 502
prependPath: true
}
},
})