-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.ts
94 lines (94 loc) · 1.78 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
css: [
'@unocss/reset/tailwind.css',
'vue-advanced-cropper/dist/style.css',
'@vuepic/vue-datepicker/dist/main.css',
'~/assets/css/index.css',
'~/assets/css/toast.css',
'~/assets/css/date-picker.css',
],
modules: [
'@nuxt/content',
'@unocss/nuxt',
'@nuxtjs/google-fonts',
'@nuxtjs/robots',
'@nuxtjs/sitemap',
'nuxt-gtag',
'@nuxt/eslint',
'@vee-validate/nuxt',
],
devtools: {
enabled: true,
timeline: {
enabled: true,
},
},
ssr: true,
// see: https://nuxt.com/docs/guide/concepts/rendering#hybrid-rendering
routeRules: {
'/**': {
ssr: true,
},
'/admin/**': {
ssr: false,
},
'/entry/**/edit': {
ssr: false,
},
'/entry/register': {
ssr: false,
},
'/login': {
ssr: false,
},
'/me': {
ssr: false,
},
},
build: {
transpile: ['@vuepic/vue-datepicker'],
analyze: true,
},
googleFonts: {
families: {
'Noto Sans JP': {
wght: [400, 500, 700],
},
},
},
content: {
api: {
// デフォルトでは`/api/_content`になっておりバックエンドと競合してしまうため変更
baseURL: '/content-api/_content',
},
highlight: {
theme: 'github-light',
langs: ['md'],
},
},
vite: {
optimizeDeps: {
exclude: ['vee-validate'],
},
server: {
proxy: {
'/api': 'http://localhost:8080',
},
},
},
robots: {
disallow: ['/admin', '/entry/register', '/entry/*/edit'],
},
sitemap: {
sources: [
'/__sitemap__/urls',
],
},
eslint: {
config: {
stylistic: true,
},
},
compatibilityDate: '2024-07-27',
})