-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnuxt.config.ts
56 lines (50 loc) · 1.17 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
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
export default({
build: {
transpile: ['vuetify'],
},
css: [
'assets/hyper.css',
'vuetify/lib/styles/main.sass',
'@mdi/font/css/materialdesignicons.min.css',
],
modules: [
'@nuxtjs/sitemap',
'@nuxtjs/i18n',
'@nuxtjs/device',
(options: any, nuxt: any) => {
nuxt.hooks.hook('vite:extendConfig', (config: any) => {
config.plugins.push(vuetify({ autoImport: true }))
})
},
],
i18n: {
locales: [
{
code: 'zh',
name: '中文'
},
{
code: 'en',
name: 'English'
}
],
strategy: 'prefix_and_default',
defaultLocale: 'zh',
vueI18n: './i18n.config.ts' // if you are using custom path, default
},
vite: {
/* options for vite */
// ssr: true // enable unstable server-side rendering for development (false by default)
// experimentWarning: false // hide experimental warning message (disabled by default for tests)
vue: {
template: {
transformAssetUrls,
}
},
},
site: {
url: 'https://hyperos.fans',
},
compatibilityDate: '2024-07-31'
})