-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.ts
68 lines (56 loc) · 1.29 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
import wasm from 'vite-plugin-wasm'
import socialLinks from './app/config/social-links'
const APP_NAME = 'Graficos.net'
const APP_URL = 'https://graficos.net' // do not end it in slash
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
css: ['~/assets/css/main.css'],
runtimeConfig: {
public: {
APP_NAME,
APP_URL,
WEBMENTIONS_TOKEN: 'iNlunTkDd9uJ93CWoVrhYw',
socialLinks,
TWITTER_USERNAME: 'paul_melero',
},
},
compatibilityDate: '2024-09-19',
future: {
compatibilityVersion: 4,
},
nitro: {
preset: 'cloudflare-module',
},
vite: {
plugins: [wasm()],
},
modules: [
'@nuxt/test-utils/module',
'@nuxt/eslint', // this needs to be before `@nuxt/content`
'nuxt-content-twoslash',
'@nuxt/content',
'@nuxtjs/tailwindcss',
'@nuxt/image',
'@nuxt/devtools',
'@nuxtjs/color-mode',
'@pinia/nuxt',
'nuxt-svgo',
'@vueuse/nuxt',
],
colorMode: {
classSuffix: '',
},
content: {
highlight: {
theme: {
default: 'min-light',
dark: 'github-dark',
},
langs: ['json', 'js', 'ts', 'html', 'css', 'vue', 'shell', 'mdc', 'md', 'yaml', 'bash', 'ps1'],
},
},
svgo: {
svgo: false,
defaultImport: 'component',
},
})