-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
61 lines (59 loc) · 1.65 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
nitro: {
compressPublicAssets: true,
brotli: true,
prerender: {
crawlLinks: true
}
},
devtools: { enabled: true },
modules: ['@nuxtjs/tailwindcss', '@sidebase/nuxt-auth', 'nuxt-headlessui', '@pinia/nuxt', '@nuxtjs/cloudinary', '@formkit/nuxt', '@nuxt/image', '@bg-dev/nuxt-naiveui'],
runtimeConfig: {
public: {
pusherPublicAppKey: process.env.NUXT_PUBLIC_PUSHER_APP_KEY
},
githubClientId: process.env.GITHUB_CLIENT_ID,
githubClientSecret: process.env.GITHUB_CLIENT_SECRET,
nuxtSecret: process.env.NUXTAUTH_SECRET,
pusherSecret: process.env.PUSHER_SECRET,
pusherAppId: process.env.PUSHER_APP_ID,
pusherPublicAppKey: process.env.NUXT_PUBLIC_PUSHER_APP_KEY
},
auth: {
provider: {
type: 'authjs'
},
isEnabled: true,
baseUrl: process.env.AUTH_ORIGIN,
},
formkit: {
// Experimental support for auto loading (see note):
autoImport: true
},
experimental: {
renderJsonPayloads: false,
},
app: {
head: {
charset: 'utf-16',
viewport: 'width=500, initial-scale=1',
title: 'Messenger with Nuxt3',
htmlAttrs: {
lang: 'en'
},
meta: [
{ name: 'description', content: 'Messenger with Nuxt.js.' },
{ name: 'keywords', content: 'Nuxt Messenger' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: 'https://static.xx.fbcdn.net/rsrc.php/ym/r/YQbyhl59TWY.ico' }
]
},
},
image: {
domains: ['res.cloudinary.com',
'avatars.githubusercontent.com',
'lh3.googleusercontent.com']
}
})