initial commit
This commit is contained in:
52
nuxt.config.ts
Normal file
52
nuxt.config.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
// 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
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user