generated from nuxt-ui-pro/saas
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
40 lines (38 loc) · 1000 Bytes
/
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
import { pwa } from "./config/pwa"
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
extends: [process.env.NUXT_UI_PRO_PATH || '@nuxt/ui-pro'],
modules: [
'@nuxt/content',
'@nuxt/image',
'@nuxt/ui',
'@nuxt/fonts',
'@nuxthq/studio',
'@vueuse/nuxt',
'nuxt-og-image',
'@vite-pwa/nuxt'
],
hooks: {
// Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need)
'components:extend': (components) => {
const globals = components.filter((c) => ['UButton'].includes(c.pascalName))
globals.forEach((c) => c.global = true)
}
},
ui: {
icons: ['heroicons', 'simple-icons']
},
routeRules: {
'/api/search.json': { prerender: true },
'/docs': { redirect: '/docs/getting-started', prerender: false },
'/docs/**': { prerender: false }
},
devtools: {
enabled: true
},
site: {
url: 'https://mgm12.dev',
name: 'MGM12.dev',
},
pwa
})