// https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ compatibilityDate: '2024-04-03', // Enables the development server to be discoverable by other devices for mobile development devServer: { host: '0.0.0.0', port: 1420 }, devtools: { enabled: true }, modules: [ '@nuxtjs/tailwindcss', '@nuxtjs/color-mode', ], // Disable SSR for Tauri ssr: false, 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, hmr: { // Use websocket for mobile hot reloading protocol: 'ws', // Make sure it's available on the network host: '0.0.0.0', // Use a specific port for hmr port: 5183, }, }, }, colorMode: { // Add `data-theme` attribute to the `html` tag, allowing DaisyUI to handle dark mode automatically dataValue: 'theme', // Remove the default `-mode` suffix from the class name, letting have `dark` and `light` as class names, for DaisyUI compatibility classSuffix: '', }, })