-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
41 lines (41 loc) · 965 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
41
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
extends: ['@nuxt/ui-pro'],
modules: [
'@nuxt/ui',
'@nuxtjs/color-mode',
'@nuxt/content',
'nuxt-icon',
'nuxt-og-image',
"@nuxtjs/hanko"
],
colorMode: {
preference: 'dark',
},
hanko: {
apiURL: process.env.NUXT_PUBLIC_HANKO_API_URL
},
ui: {
icons: ['heroicons', 'simple-icons', 'material-symbols']
},
routeRules: {
'/api/search.json': { prerender: true },
'/docs': { redirect: '/docs/introduction', prerender: false },
'/api/v1/**': { proxy: { to: 'http://127.0.0.1:8000/api/v1/**' } }
},
runtimeConfig: {
// Public keys that are exposed to the client
public: {
fastapiBase: process.env.NUXT_FAST_API_BASE || '/api/v1'
}
},
vite: {
optimizeDeps: {
include: ["plotly.js-dist-min"],
},
},
experimental: {
componentIslands: true
}
})