-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnuxt.config.ts
64 lines (53 loc) · 1.23 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 { createResolver } from 'nuxt/kit'
export default defineNuxtConfig({
devtools: { enabled: true },
colorMode: {
preference: 'light',
},
modules: [
'@nuxt/eslint',
'@nuxt/ui',
'nuxt-og-image',
'nuxt-auth-utils',
'@nuxt/image',
'@nuxtjs/mdc',
'@nuxtjs/sitemap',
],
runtimeConfig: {
twitterAPIKey: process.env.TWITTER_API_KEY,
twitterAPISecret: process.env.TWITTER_API_SECRET,
twitterAccessToken: process.env.TWITTER_ACCESS_TOKEN,
twitterAccessSecret: process.env.TWITTER_ACCESS_SECRET,
adminPassword: process.env.ADMIN_PASSWORD,
databaseDir: './server/database',
tursoDBURL: process.env.TURSO_DB_URL,
tursoDBToken: process.env.TURSO_DB_TOKEN,
nodeEnv: process.env.NODE_ENV,
},
sitemap: {
sources: ['/api/sitemap'],
},
build: {
transpile: ['shiki'], // Or explicitly exclude it if it's not needed
},
mdc: {
components: {
prose: false,
},
highlight: {
theme: {
default: 'vitesse-light',
dark: 'material-theme-palenight',
},
},
},
eslint: {
config: {
stylistic: {
quotes: 'single',
commaDangle: 'never',
},
},
},
compatibilityDate: '2025-01-07',
})