-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathnuxt.config.ts
87 lines (84 loc) · 2.55 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
export default defineNuxtConfig({
pwa: {
icon: {
fileName: 'android-chrome-512x512.png',
},
manifest: {
background_color: '#f5f5f5',
name: 'Golem',
categories: ['productivity', 'education'],
description: 'Golem is an open-source, amazingly crafted conversational UI and alternative to ChatGPT.',
display: 'standalone',
lang: 'en',
id: `golem-${new Date().getTime()}`,
theme_color: '#3f3f3f',
},
meta: {
ogDescription: 'Golem is an open-source, amazingly crafted conversational UI and alternative to ChatGPT.',
ogTitle: 'Golem',
ogHost: 'https://golem.chat/',
ogImage: '/og-image.png',
ogUrl: 'https://golem.chat/',
title: 'Golem',
author: 'Henrique Cunha',
description: 'Golem is an open-source, amazingly crafted conversational UI and alternative to ChatGPT.',
lang: 'en',
ogSiteName: 'app.golem.chat',
twitterCard: 'summary_large_image',
twitterSite: 'golem.chat',
twitterCreator: '@henrycunh',
},
},
css: ['~/assets/css/main.css'],
experimental: {
reactivityTransform: true,
},
modules: [
'@unocss/nuxt',
'@vueuse/nuxt',
'@nuxtjs/color-mode',
'@kevinmarrec/nuxt-pwa',
],
colorMode: {
classSuffix: '',
},
unocss: {
attributify: true,
uno: true,
icons: true,
webFonts: {
fonts: {
code: 'DM Mono:400',
text: 'Rubik:400,700',
title: 'Space Grotesk:400,700',
},
},
},
vite: {
define: {
'process.env.VSCODE_TEXTMATE_DEBUG': 'false',
'__DEV__': process.env.NODE_ENV === 'development',
},
},
hooks: {
'vite:extendConfig': function (config, { isServer }) {
if (isServer) {
const alias = config.resolve!.alias as Record<string, string>
for (const dep of ['shiki-es', 'fuse.js']) {
alias[dep] = 'unenv/runtime/mock/proxy'
}
}
},
},
app: {
pageTransition: { name: 'page', mode: 'out-in' },
},
runtimeConfig: {
detaKey: process.env.DETA_PROJECT_KEY,
apiKey: process.env.OPENAI_API_KEY,
password: process.env.GOLEM_PASSWORD,
},
build: {
transpile: ['trpc-nuxt', 'dexie'],
},
})