-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
77 lines (75 loc) · 1.39 KB
/
nuxt.config.ts
File metadata and controls
77 lines (75 loc) · 1.39 KB
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
import { defineNuxtConfig } from 'nuxt/config'
import vuetify from 'vite-plugin-vuetify'
const nuxtConfig = defineNuxtConfig({
devServer: {
port: 8000
},
devtools: { enabled: true },
alias: {
'katex/contrib/auto-render': 'katex/dist/contrib/auto-render.js',
'codemirror/mode': 'codemirror/mode'
},
build: {
transpile: [
'vuetify',
'codemirror/lib/codemirror.css',
'@vuepic/vue-datepicker'
]
},
hooks: {
'vite:extendConfig': (config) => {
config.plugins!.push(vuetify())
}
},
/*
** Nuxt.js modules
*/
modules: [
'@pinia/nuxt',
'@vueuse/nuxt',
[
'@nuxtjs/eslint-module',
{
lintOnStart: false
}
],
'dayjs-nuxt'
],
vite: {
ssr: {
noExternal: ['vuetify']
},
define: {
'process.env.DEBUG': false
},
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler'
}
}
}
},
runtimeConfig: {
public: {
apiBase: '',
gaTrackingId: ''
}
},
routeRules: {
'/privacy_policy': { prerender: true },
// '/languages': { prerender: true },
'/admin/**': { ssr: false },
'/manage/**': { ssr: false }
},
future: {
compatibilityVersion: 4
},
compatibilityDate: '2024-08-31',
dayjs: {
locales: ['ja'],
defaultLocale: 'ja',
plugins: ['duration']
}
})
export default nuxtConfig