-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
105 lines (105 loc) · 2.07 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
95
96
97
98
99
100
101
102
103
104
105
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
future: { compatibilityVersion: 4 },
devtools: { enabled: true },
runtimeConfig: {
public: {
app: {
baseUrl: process.env.NUXT_PUBLIC_APP_BASE_URL,
},
},
// Need to explicitly set defaults to env value here. See: https://github.com/nuxt/nuxt/issues/26149
oauth: {
github: {
clientId: process.env.NUXT_OAUTH_GITHUB_CLIENT_ID,
clientSecret: process.env.NUXT_OAUTH_GITHUB_CLIENT_SECRET,
},
},
},
app: {
layoutTransition: {
name: 'layout',
mode: 'out-in',
},
pageTransition: {
name: 'page',
mode: 'out-in',
},
},
nitro: {
experimental: {
openAPI: true,
},
},
modules: [
'@nuxtjs/seo', // Need to be registered first in order to make content module work properly
'@nuxt/content',
'@nuxt/eslint',
'@nuxt/fonts',
'@nuxt/icon',
'@nuxt/image',
'@nuxthub/core',
'@nuxtjs/color-mode',
'@nuxtjs/tailwindcss',
'@vueuse/nuxt',
],
content: {
database: {
type: 'd1',
binding: 'DB',
},
},
eslint: {
config: {
stylistic: true,
formatters: true,
},
},
image: {
domains: [
'github.com',
'upload.wikimedia.org',
'img.shields.io',
],
},
hub: {
analytics: true,
cache: true,
database: true,
},
colorMode: {
classSuffix: '',
},
// @nuxtjs/seo
ogImage: {
enabled: false,
},
site: {
url: 'https://www.hrdtr.dev',
name: 'Herdi Tr.',
description: 'Software engineer with a deep love for crafting elegant and efficient solutions',
defaultLocale: 'en',
identity: {
type: 'Person',
},
twitter: '@hrdtr_',
trailingSlash: true,
},
sitemap: {
sitemaps: {
pages: {
includeAppSources: true,
},
blog: {
sources: [
'/api/__sitemap__/urls/blog',
],
},
projects: {
sources: [
'/api/__sitemap__/urls/projects',
],
},
},
},
})