Files
splitt-the-bill/nuxt.config.ts
T
2026-09-24 21:00:31 +02:00

46 lines
1.2 KiB
TypeScript

import tailwindcss from '@tailwindcss/vite';
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2026-08-07',
devtools: { enabled: true },
modules: ['@nuxtjs/i18n'],
css: ['~/assets/css/tailwind.css'],
app: {
head: {
link: [
{ rel: 'manifest', href: '/manifest.webmanifest' },
{ rel: 'apple-touch-icon', href: '/apple-touch-icon.png' },
],
meta: [
{ name: 'theme-color', content: '#ea580c' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' },
{ name: 'apple-mobile-web-app-title', content: 'Splitt' },
],
},
},
vite: {
plugins: [tailwindcss()],
},
runtimeConfig: {
database: {
url: 'file:./.data/db.sqlite',
authToken: '',
},
},
i18n: {
locales: [
{ code: 'en', name: 'English', file: 'en.json' },
{ code: 'de', name: 'Deutsch', file: 'de.json' },
],
defaultLocale: 'en',
strategy: 'no_prefix',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'locale',
redirectOn: 'root',
},
},
});