-
Notifications
You must be signed in to change notification settings - Fork 187
/
Copy pathnuxt.config.ts
47 lines (46 loc) · 1.04 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
extends: ['@nuxt/ui-pro'],
modules: [
'@nuxt/content',
'@nuxt/ui',
'@nuxtjs/fontaine',
'@nuxtjs/google-fonts',
'@nuxtjs/plausible',
'@nuxthq/studio',
'nuxt-og-image',
],
// Devtools / Typescript
devtools: { enabled: true },
ui: {
icons: ['heroicons', 'simple-icons', 'ph'],
},
alias: {
'@nuxtjs/tailwindcss': '../src/module',
},
routeRules: {
'/getting-started': { redirect: '/getting-started/installation' },
'/tailwind': { redirect: '/tailwind/config' },
'/examples': { redirect: '/examples/basic' },
'/api/search.json': { prerender: true },
},
future: { compatibilityVersion: 4 },
compatibilityDate: '2024-07-11',
nitro: {
prerender: {
routes: ['/'],
},
},
typescript: { strict: false },
// Fonts
fontMetrics: {
fonts: ['DM Sans'],
},
googleFonts: {
display: 'swap',
download: true,
families: {
'DM+Sans': [400, 500, 600, 700],
},
},
})