-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
38 lines (37 loc) · 997 Bytes
/
nuxt.config.ts
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss'
],
devtools: {
enabled: true,
timeline: {
enabled: true
}
},
// Enable SSG
ssr: false,
// Enables the development server to be discoverable by other devices for mobile development
devServer: { host: '0.0.0.0' },
vite: {
// Better support for Tauri CLI output
clearScreen: false,
// Enable environment variables
// Additional environment variables can be found at
// https://tauri.app/2/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,
},
},
},
compatibilityDate: "2024-07-04"
})