-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
55 lines (55 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
runtimeConfig: {
nasaApodKey: '',
nasaApodBase: 'https://api.nasa.gov/planetary/apod',
},
devtools: { enabled: true },
compatibilityDate: '2024-07-28',
future: {
compatibilityVersion: 4,
},
app: {
head: {
link: [{ rel: 'author', href: 'https://tcastanie.dev' }],
},
pageTransition: { name: 'page', mode: 'out-in' },
},
modules: [
'@nuxt/ui',
'@nuxt/eslint',
'@vueuse/nuxt',
'dayjs-nuxt',
'@nuxt/image',
'@nuxtjs/seo',
],
routeRules: {
// '/': { swr: 3600 * 8 },
// '/**': { swr: true },
'/search': { redirect: { to: '/', statusCode: 301 } },
'/about': { redirect: { to: '/', statusCode: 301 } },
},
eslint: {
config: {
stylistic: true,
},
},
colorMode: {
preference: 'dark',
},
icon: {
serverBundle: 'remote',
},
dayjs: {
plugins: ['customParseFormat', 'isToday'],
},
site: {
url: 'https://apod.tcastanie.dev',
name: 'Another APOD viewer',
description: 'Simple APOD viewer nuxt app',
defaultLocale: 'en',
},
ogImage: {
enabled: false,
},
})