-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
64 lines (63 loc) · 1.57 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 vuetify from 'vite-plugin-vuetify'
export default defineNuxtConfig({
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
title: 'VidFlow',
meta: [
{ property: 'og:title', name: 'og:title', content: 'VidFlow' },
{ property: 'og:url', name: 'og:url', content: 'https://vidflow.vercel.app/' },
{ property: 'og:image', name: 'og:image', content: '/images/logo.svg' },
{ property: 'og:type', name: 'og:type', content: 'Web application' },
{ property: 'og:description', name: 'og:description', content: 'VidFlow - An open source content sharing platform.' },
{
property: 'description',
name: 'description',
content: 'VidFlow - An open source content sharing platform.'
}
],
link: [
{ rel: 'icon', href: '/images/logo.svg' }
]
}
},
typescript: {
shim: false
},
modules: [
'@nuxtjs/color-mode',
'@sidebase/nuxt-auth',
'@vueuse/nuxt',
// @ts-ignore
async (options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', config => config.plugins.push(vuetify()))
}
],
css: ['vuetify/styles'],
colorMode: {
preference: 'dark',
classSuffix: ''
},
vite: {
ssr: {
noExternal: ['vuetify']
}
},
runtimeConfig: {
authSecret: '',
backendBaseUrl: '',
public: {
backendBaseUrl: ''
}
},
auth: {
origin: process.env.ORIGIN,
enableGlobalAppMiddleware: true
},
nitro: {
prerender: {
routes: ['/login', '/register']
}
}
})