78 lines
2.7 KiB
TypeScript
78 lines
2.7 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', name: 'Magyar',
|
|
files: [
|
|
'hu/common.json', 'hu/menu.json', 'hu/providers.json', 'hu/garages.json',
|
|
'hu/dashboard.json', 'hu/config.json', 'hu/badges.json', 'hu/levels.json',
|
|
'hu/point_rules.json', 'hu/seasons.json', 'hu/competitions.json',
|
|
'hu/leaderboard.json', 'hu/ledger.json', 'hu/params.json', 'hu/packages.json',
|
|
'hu/persons.json', 'hu/permissions.json', 'hu/users.json', 'hu/user_detail.json',
|
|
'hu/gamification_users.json', 'hu/gamification_user_detail.json',
|
|
'hu/garages-details.json', 'hu/garages-employees.json',
|
|
'hu/garages-fleet.json', 'hu/garages-analytics.json',
|
|
],
|
|
},
|
|
{
|
|
code: 'en', iso: 'en-GB', name: 'English',
|
|
files: [
|
|
'en/common.json', 'en/menu.json', 'en/providers.json', 'en/garages.json',
|
|
'en/dashboard.json', 'en/config.json', 'en/badges.json', 'en/levels.json',
|
|
'en/point_rules.json', 'en/seasons.json', 'en/competitions.json',
|
|
'en/leaderboard.json', 'en/ledger.json', 'en/params.json', 'en/packages.json',
|
|
'en/persons.json', 'en/permissions.json', 'en/users.json', 'en/user_detail.json',
|
|
'en/gamification_users.json', 'en/gamification_user_detail.json',
|
|
'en/garages-details.json', 'en/garages-employees.json',
|
|
'en/garages-fleet.json', 'en/garages-analytics.json',
|
|
],
|
|
},
|
|
{ code: 'de', iso: 'de-DE', file: 'de.json', name: 'Deutsch' },
|
|
{ code: 'fr', iso: 'fr-FR', file: 'fr.json', name: 'Français' },
|
|
{ code: 'ro', iso: 'ro-RO', file: 'ro.json', name: 'Română' },
|
|
{ code: 'cz', iso: 'cs-CZ', file: 'cz.json', name: 'Čeština' },
|
|
{ code: 'sk', iso: 'sk-SK', file: 'sk.json', name: 'Slovenčina' },
|
|
],
|
|
defaultLocale: 'hu',
|
|
lazy: true,
|
|
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,
|
|
},
|
|
},
|
|
},
|
|
})
|