-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
114 lines (95 loc) · 1.93 KB
/
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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import { createResolver } from '@nuxt/kit'
const { resolve } = createResolver(import.meta.url)
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: false,
app: {
head: {
title: import.meta.env.VITE_TITLE || 'NuxtFlux',
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: `${import.meta.env.NUXT_APP_BASE_URL || ''}/favicon.ico`.replaceAll('//', '/'),
},
],
},
},
nitro: {
compressPublicAssets: true,
},
devServer: {
// expose the server to the network, so I can access it from tailscale's client
host: '0.0.0.0',
},
typescript: {
tsConfig: {
compilerOptions: {
jsx: 'preserve',
jsxImportSource: 'vue',
},
},
},
postcss: {
plugins: {
'postcss-nesting': {
} satisfies import('postcss-nesting').pluginOptions,
'@unocss/postcss': {
configOrPath: resolve('./uno.config.ts'),
} satisfies import('@unocss/postcss').UnoPostcssPluginOptions,
},
},
devtools: {
enabled: true,
timeline: {
enabled: true,
},
},
imports: {
dirs: [
resolve('./composables/vueuse'),
],
},
components: [
{
prefix: 'Layout',
path: resolve('./components/layouts'),
global: true,
},
],
modules: [
'@unocss/nuxt',
'@formkit/auto-animate/nuxt',
'@nuxtjs/i18n',
'nuxt-open-fetch',
'nuxt-typed-router',
'@pinia/nuxt',
],
i18n: {
locales: [
{
code: 'en',
name: 'English',
file: 'en.json',
},
{
code: 'zh',
name: '中文',
file: 'zh.json',
},
],
strategy: 'no_prefix',
langDir: 'locales',
},
unocss: {
// preflight: true,
},
openFetch: {
disableNuxtPlugin: true,
clients: {
miniflux: {
schema: resolve('./openapi/miniflux.json'),
},
},
},
})