-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
68 lines (67 loc) · 2.53 KB
/
nuxt.config.ts
File metadata and controls
68 lines (67 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
const host = process.env.TAURI_DEV_HOST
// https://nuxt.com/docs/api/configuration/nuxt-config
// Tauri: https://tauri.app/start/frontend/nuxt/#update-nuxt-configuration
export default defineNuxtConfig({
modules: ['@nuxtjs/tailwindcss', '@nuxt/eslint'],
ssr: false,
imports: {
dirs: ['composables/**'],
},
devtools: { enabled: false },
css: ['~/assets/css/main.css'],
runtimeConfig: {
public: {
// These are overridden by the following environment variables. And overridden again by the Tauri Store's file which is loaded in useConfig.ts.
backendModeDefault: 'webgpu', // NUXT_PUBLIC_BACKEND_MODE_DEFAULT
lemonadeBaseUrlDefault: 'http://localhost:8000', // NUXT_PUBLIC_LEMONADE_BASE_URL_DEFAULT
lemonadeModelDefault: 'Qwen3.5-9B-GGUF', // NUXT_PUBLIC_LEMONADE_MODEL_DEFAULT
lemonadeWhisperModelDefault: 'Whisper-Base', // NUXT_PUBLIC_LEMONADE_WHISPER_MODEL_DEFAULT
lemonadeTtsModelDefault: 'kokoro-v1', // NUXT_PUBLIC_LEMONADE_TTS_MODEL_DEFAULT
enableThinkingDefault: false, // NUXT_PUBLIC_ENABLE_THINKING_DEFAULT
transparentBackgroundDefault: false, // NUXT_PUBLIC_TRANSPARENT_BACKGROUND_DEFAULT
emotionDisplay3dDefault: true, // NUXT_PUBLIC_EMOTION_DISPLAY_3D_DEFAULT
whisperLanguageDefault: '', // NUXT_PUBLIC_WHISPER_LANGUAGE_DEFAULT (empty = auto-detect from browser)
// NUXT_PUBLIC_SYSTEM_PROMPT_DEFAULT
systemPromptDefault: [
'You are a helpful AI assistant.',
'Please follow these rules when responding:',
'- Keep responses to 1-3 sentences',
'- Answer clearly and concisely',
'- Avoid lengthy explanations as this is designed for voice conversation',
].join('\n'),
},
},
dir: { public: 'src/public' },
srcDir: 'src',
ignore: ['**/src-tauri/**'], // Tauri
devServer: {
// Tauri mobile needs this
host: host ?? undefined,
},
compatibilityDate: '2025-07-15',
vite: {
clearScreen: false, // Better support for Tauri CLI output
envPrefix: ['VITE_', 'TAURI_'],
server: {
strictPort: true, // Tauri requires a consistent port
},
},
telemetry: false,
// HMR on Tauri mobile: https://github.com/tauri-apps/tauri/issues/11165
hooks: {
'vite:extend': host
? ({ config }) => {
if (config.server?.hmr && config.server.hmr !== true) {
config.server.hmr.protocol = 'ws'
config.server.hmr.host = host
config.server.hmr.port = 3000
}
}
: undefined,
},
eslint: {
config: {
stylistic: true,
},
},
})