-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
44 lines (43 loc) · 932 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
39
40
41
42
43
44
// https://nuxt.com/docs/api/configuration/nuxt-config
import topLevelAwait from 'vite-plugin-top-level-await'
export default defineNuxtConfig({
modules: [
'@vueuse/nuxt',
'@nuxt/ui',
'@nuxtjs/i18n',
'@nuxt/eslint',
'@nuxtjs/color-mode',
],
ssr: true,
devtools: { enabled: process.env.NODE_ENV === 'development' },
app: {
head: {
title: 'AskPDF',
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.png' }],
htmlAttrs: {
lang: 'en',
},
},
},
build: {
transpile: ['nuxt'],
},
nitro: {
esbuild: {
options: {
target: 'esnext',
},
},
},
vite: {
plugins: [topLevelAwait()],
define: {
__INTLIFY_JIT_COMPILATION__: true,
__INTLIFY_DROP_MESSAGE_COMPILER__: true,
},
},
i18n: {
locales: ['en-US', 'zh'],
vueI18n: './i18n.config.ts', // if you are using custom path, default
},
})