-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
96 lines (94 loc) · 1.96 KB
/
nuxt.config.ts
File metadata and controls
96 lines (94 loc) · 1.96 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-10-26',
devtools: { enabled: true },
// workarounds from https://github.com/nuxt/nuxt/issues/32175#issuecomment-2898200099
// vite: {
// $server: {
// build: {
// rollupOptions: {
// output: {
// preserveModules: true,
// },
// },
// },
// },
// },
image: {
format: ['avif', 'webp'],
domains: ['api.dicebear.com', 'pbwnxbtrvstghwumkkrk.supabase.co'],
},
css: ['~/styles/tailwind.css'],
routeRules: {
'/goodies': { prerender: true },
'/panduan': {
redirect:
'https://ybp-eng.notion.site/Panduan-Pengguna-18dcff94653a800eac48d49c740b9ad5',
},
},
router: {
options: {
scrollBehaviorType: 'smooth',
},
},
nitro: {
future: {
nativeSWR: true,
},
},
modules: [
'@nuxt/ui',
'@nuxt/eslint',
'@nuxt/fonts',
'@nuxtjs/supabase',
'@vueuse/nuxt',
'@nuxtjs/seo',
'@nuxt/image',
'motion-v/nuxt',
],
future: {
compatibilityVersion: 5,
},
experimental: {
viewTransition: true,
asyncEntry: true,
granularCachedData: true,
enforceModuleCompatibility: true,
viteEnvironmentApi: true,
extractAsyncDataHandlers: true,
typescriptPlugin: true,
},
supabase: {
redirect: false,
},
colorMode: {
preference: 'light',
},
typescript: {
strict: false,
},
fonts: {
provider: 'bunny',
defaults: {
weights: [300, 400, 500, 600, 700],
subsets: ['latin'],
},
},
site: {
url: 'https://www.ykbookparty.org',
name: 'Yogyakarta Book Party',
locale: 'id',
description:
'Yogyakarta Book Party Official Website. #baca #literasi #inklusif',
},
robots: {
disallow: ['/hq', '/hq/*'],
},
schemaOrg: {
identity: {
type: 'Organization',
name: 'Yogyakarta Book Party',
logo: '/logo.jpg',
},
},
})