Repository navigation
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
163 lines (161 loc) · 4.53 KB
/
Copy pathnuxt.config.ts
File metadata and controls
163 lines (161 loc) · 4.53 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// https://nuxt.com/docs/api/configuration/nuxt-config
import process from 'node:process';
const sw = process.env.SW === 'true';
import tailwindcss from '@tailwindcss/vite';
import vueJsxPlugin from '@vitejs/plugin-vue-jsx';
export default defineNuxtConfig({
compatibilityDate: '2025-05-15',
devtools: { enabled: true },
modules: ['@nuxt/icon', '@pinia/nuxt', 'nuxt-og-image', 'nuxt-seo-utils'],
// Workaround for Nuxt #30461 / #33606: Vite pre-bundles `useFetch` which
// pulls in `#app-manifest`, and the virtual module fails to resolve in dev
// when no client-side payload manifest exists. We don't use route rules /
// payload revalidation, so disabling is safe.
experimental: {
appManifest: false,
},
site: {
url: 'https://www.tezz.chat',
name: 'Tezz Chat',
},
runtimeConfig: {
geminiApiKey: process.env.GEMINI_API_KEY || '',
cerebrasApiKey: process.env.CEREBRAS_API_KEY || '',
public: {
appwrite: {
url: process.env.NUXT_PUBLIC_APPWRITE_URL,
realtimeUrl: process.env.NUXT_PUBLIC_APPWRITE_REALTIME_URL,
projectId: process.env.NUXT_PUBLIC_APPWRITE_PROJECT_ID,
databaseId: process.env.NUXT_PUBLIC_APPWRITE_DATABASE_ID,
storageId: process.env.NUXT_PUBLIC_APPWRITE_STORAGE_ID,
},
},
},
vite: {
plugins: [tailwindcss() as any, vueJsxPlugin() as any],
optimizeDeps: {
include: ['dexie', 'rxdb'],
},
resolve: {
alias: {
'micromark-extension-math': 'micromark-extension-llm-math',
},
},
},
css: ['./assets/css/main.css'],
$production: {
build: {
transpile: ['dexie', 'rxdb'],
},
// pwa: {
// strategies: sw ? 'injectManifest' : 'generateSW',
// srcDir: sw ? 'service-worker' : undefined,
// filename: sw ? 'sw.ts' : undefined,
// registerType: 'autoUpdate',
// manifest: {
// name: 'Tezz Chat',
// short_name: 'Tezz Chat',
// description: 'AI-powered chat application',
// theme_color: '#fcd195',
// background_color: '#ffffff',
// display: 'standalone',
// orientation: 'portrait',
// scope: '/',
// icons: [
// {
// src: 'icons/icon-72x72.png',
// sizes: '72x72',
// type: 'image/png',
// },
// {
// src: 'icons/icon-96x96.png',
// sizes: '96x96',
// type: 'image/png',
// },
// {
// src: 'icons/icon-128x128.png',
// sizes: '128x128',
// type: 'image/png',
// },
// {
// src: 'icons/icon-144x144.png',
// sizes: '144x144',
// type: 'image/png',
// },
// {
// src: 'icons/icon-152x152.png',
// sizes: '152x152',
// type: 'image/png',
// },
// {
// src: 'icons/icon-192x192.png',
// sizes: '192x192',
// type: 'image/png',
// purpose: 'any maskable',
// },
// {
// src: 'icons/icon-384x384.png',
// sizes: '384x384',
// type: 'image/png',
// },
// {
// src: 'icons/icon-512x512.png',
// sizes: '512x512',
// type: 'image/png',
// },
// ],
// },
// workbox: {
// globPatterns: ['**/*.{js,css,html,png,svg,ico}'],
// },
// client: {
// installPrompt: true,
// },
// devOptions: {
// enabled: true,
// type: 'module',
// },
// },
},
app: {
head: {
viewport:
'width=device-width,initial-scale=1,user-scalable=no,interactive-widget=resizes-content',
title: 'Tezz Chat',
link: [
{
rel: 'shortcut icon',
type: 'image/x-icon',
href: 'favicon.ico',
},
{
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/apple-touch-icon.png',
},
{
rel: 'apple-touch-startup-image',
href: '/apple-touch-icon.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/favicon-32x32.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '192x192',
href: '/android-chrome-192x192.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '512x512',
href: '/android-chrome-512x512.png',
},
],
},
},
});