Files
service-finder/frontend_admin/nuxt.config.ts

49 lines
1.1 KiB
TypeScript

export default defineNuxtConfig({
devtools: { enabled: true },
modules: ['@nuxtjs/tailwindcss', '@pinia/nuxt', '@nuxtjs/i18n'],
css: ['~/assets/css/main.css'],
tailwindcss: {
config: {
content: [
'./components/**/*.{vue,js,ts}',
'./layouts/**/*.{vue,js,ts}',
'./pages/**/*.{vue,js,ts}',
'./middleware/**/*.{js,ts}',
'./app.vue',
],
theme: {
extend: {},
},
},
},
i18n: {
locales: [
{ code: 'hu', iso: 'hu-HU', file: 'hu.json', name: 'Magyar' },
{ code: 'en', iso: 'en-GB', file: 'en.json', name: 'English' },
],
defaultLocale: 'hu',
lazy: false,
langDir: 'locales/',
strategy: 'no_prefix',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root',
},
},
vite: {
server: {
allowedHosts: ['admin.servicefinder.hu'],
},
},
nitro: {
devProxy: {
'/api/v1': {
target: process.env.NUXT_PUBLIC_API_BASE_URL || 'http://sf_api:8000',
changeOrigin: true,
prependPath: true,
},
},
},
})