-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathnuxt.config.ts
64 lines (63 loc) · 1.37 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
import tailwindcss from '@tailwindcss/vite'
import tailwindTheme from './assets/shiki/themes/tailwind.json'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
css: ['~/assets/css/tailwind.css'],
modules: [
'./modules/routes-list',
'./modules/github-release',
'@nuxt/content',
'nuxt-og-image',
'@nuxt/fonts'
],
devtools: { enabled: true },
nitro: { preset: 'static', },
spaLoadingTemplate: false,
devServer: { port: 8080 },
site: {
url: 'https://maizzle.com',
},
components: {
dirs: [
{
path: '~/components/Pattern',
prefix: 'Pattern',
global: true,
},
{
path: '~/components/Site',
prefix: 'Site',
global: true,
},
'~/components',
],
},
content: {
build: {
markdown: {
highlight: {
theme: {
light: tailwindTheme,
dark: tailwindTheme,
},
langs: ['json', 'js', 'html', 'css', 'shell', 'mdx', 'md', 'yaml', 'hbs'],
},
},
},
},
runtimeConfig: {
public: {
docsearch: {
appId: process.env.DOCSEARCH_APP_ID,
apiKey: process.env.DOCSEARCH_API_KEY,
indexName: process.env.DOCSEARCH_INDEX_NAME,
}
},
},
vite: {
plugins: [
tailwindcss(),
],
},
})