-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.ts
96 lines (86 loc) · 1.75 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
export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss',
'@nuxt/content',
'@vueuse/nuxt',
'@pinia/nuxt',
'nuxt-icon',
'@nuxtjs/color-mode',
'@pinia/nuxt',
'@nuxt/image',
'nuxt-schema-org',
'@nuxtjs/fontaine',
],
alias: {
'micromark/lib/preprocess.js': 'micromark',
'micromark/lib/postprocess.js': 'micromark',
},
content: {
watch: {
ws: {
port: 5000,
},
},
highlight: {
// Theme used in all color schemes.
theme: 'github-dark',
},
},
image: {
provider: 'cloudinary',
cloudinary: {
baseURL: 'https://res.cloudinary.com/doubleslash/image/fetch/',
modifiers: {
effect: 'sharpen:100',
quality: 'auto:best',
},
},
},
tailwindcss: {
cssPath: '~/assets/main.css',
},
buildModules: [],
experimental: {
reactivityTransform: true,
viteNode: false,
componentIslands: true,
viewTransition: true
},
colorMode: {
classSuffix: '',
},
nitro: {
prerender: {
routes: [
'/podcast-rss-feed.xml',
'/sitemaps.xml',
'/github-sponsor.json',
],
},
},
runtimeConfig: {
github_auth: process.env.GITHUB_AUTH,
REDIS_URL: process.env.REDIS_URL,
REDIS_TOKEN: process.env.REDIS_TOKEN,
public: {
numberEpisodesList: 25,
isDev: process.env.NODE_ENV === 'development',
content: {
anchorLinks: {
exclude: [1, 2, 3, 4, 5, 6],
},
},
},
},
hooks: {
'pages:extend'(pages) {
// add a route
pages.push({
name: 'podcasts-index',
path: '/podcasts/:page(\\d+)?',
file: '~/pages/podcasts/index.vue',
});
},
},
compatibilityDate: '2024-10-29',
});