mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-16 14:10:52 +01:00
81 lines
1.8 KiB
TypeScript
81 lines
1.8 KiB
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: '2024-11-01',
|
|
|
|
modules: [
|
|
'nuxt-zod-i18n',
|
|
'@nuxtjs/i18n',
|
|
'@nuxtjs/tailwindcss',
|
|
'@pinia/nuxt',
|
|
'@vueuse/nuxt',
|
|
'@nuxt/icon',
|
|
'nuxt-snackbar',
|
|
],
|
|
|
|
imports: {
|
|
dirs: ['composables/**', 'stores/**', 'components/**', 'pages/**'],
|
|
},
|
|
|
|
i18n: {
|
|
strategy: 'prefix_and_default',
|
|
defaultLocale: 'de',
|
|
vueI18n: '../src/i18n/i18n.config.ts',
|
|
|
|
locales: [
|
|
{ code: 'de', language: 'de-DE', isCatchallLocale: true },
|
|
{ code: 'en', language: 'en-EN' },
|
|
],
|
|
|
|
detectBrowserLanguage: {
|
|
useCookie: true,
|
|
cookieKey: 'i18n_redirected',
|
|
redirectOn: 'root', // recommended
|
|
},
|
|
types: 'composition',
|
|
bundle: {
|
|
optimizeTranslationDirective: false,
|
|
},
|
|
},
|
|
|
|
/* zodI18n: {
|
|
localeCodesMapping: {
|
|
'en-GB': 'en',
|
|
'de-DE': 'de',
|
|
},
|
|
}, */
|
|
|
|
runtimeConfig: {
|
|
public: {
|
|
haexVault: {
|
|
lastVaultFileName: 'lastVaults.json',
|
|
//defaultDatabase: 'src/database/default.db',
|
|
},
|
|
},
|
|
},
|
|
|
|
devtools: { enabled: true },
|
|
srcDir: './src',
|
|
// Enable SSG
|
|
ssr: false,
|
|
// Enables the development server to be discoverable by other devices when running on iOS physical devices
|
|
devServer: { host: process.env.TAURI_DEV_HOST || 'localhost' },
|
|
vite: {
|
|
// Better support for Tauri CLI output
|
|
clearScreen: false,
|
|
// Enable environment variables
|
|
// Additional environment variables can be found at
|
|
// https://v2.tauri.app/reference/environment-variables/
|
|
envPrefix: ['VITE_', 'TAURI_'],
|
|
server: {
|
|
// Tauri requires a consistent port
|
|
strictPort: true,
|
|
},
|
|
|
|
/* plugins: [wasm(), topLevelAwait()],
|
|
worker: {
|
|
format: 'es',
|
|
plugins: () => [wasm(), topLevelAwait()],
|
|
}, */
|
|
},
|
|
});
|