-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
executable file
·92 lines (81 loc) · 2.27 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
88
89
90
91
92
import process from 'node:process'
import { getConfig } from '@psitta/core'
import './i18n'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
srcDir: './app',
devtools: { enabled: true },
modules: ['@nuxtjs/tailwindcss', 'nitro-cloudflare-dev', '@nuxt/eslint', '@nuxtjs/mdc', '@nuxt/image', '@nuxt/fonts', '@nuxt/content'],
content: {
watch: {
ws: {
// hostname: '9aia-dev.com',
},
},
locales: getConfig().locales,
defaultLocale: getConfig().defaultLocale,
},
nitro: {
preset: 'cloudflare-module',
},
mdc: {
remarkPlugins: {
emoji: {
src: 'remark-emoji',
},
remarkSpanWords: {
src: '~~/remark-span-words.ts',
},
},
},
eslint: {
config: {
standalone: false,
},
},
app: {
head: {
title: 'Thal - Talk to Learn. Learn to Talk.',
meta: [
{ name: 'description', content: 'Improve your English through conversations with personalized AI characters and real-time UI assistance!' },
{ name: 'keywords', content: 'English learning, AI tutor, Language practice, Conversation practice, Real-time assistance, Personalized learning, AI chatbot, Interactive English, Speaking practice, Fluency improvement' },
{ name: 'author', content: 'Gaia Team' },
{ name: 'viewport', content: 'width=device-width,initial-scale=1,shrink-to-fit=yes,user-scalable=0' },
],
link: [
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined' },
],
},
},
devServer: {
host: '',
},
runtimeConfig: {
GCP_CLOUD_TTS_API_KEY: process.env.GCP_CLOUD_TTS_API_KEY,
GOOGLE_CLIENT_SECRET: process.env.GOOGLE_CLIENT_SECRET,
GEMINI_API_KEY: process.env.GEMINI_API_KEY,
GEMINI_MODEL: process.env.GEMINI_MODEL,
STRIPE_SECRET_KEY: process.env.STRIPE_SECRET_KEY,
STRIPE_ENDPOINT_SECRET: process.env.STRIPE_ENDPOINT_SECRET,
},
components: [
{
path: '~/components',
pathPrefix: false,
},
{
path: '~/modals',
pathPrefix: false,
},
{
path: '~/drawers',
pathPrefix: false,
},
],
vite: {
server: {
allowedHosts: ['9aia-dev.com'],
},
},
compatibilityDate: '2024-12-25',
})