-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
45 lines (45 loc) · 1.69 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
runtimeConfig: {
public: {
supabaseUrl: process.env.NUXT_PUBLIC_SUPABASE_URL,
supabaseAnonKey: process.env.NUXT_PUBLIC_SUPABASE_ANON_KEY,
firebaseApiKey: process.env.FIREBASE_API_KEY,
firebaseAuthDomain: process.env.FIREBASE_AUTH_DOMAIN,
firebaseProjectId: process.env.FIREBASE_PROJECT_ID,
firebaseStorageBucket: process.env.FIREBASE_STORAGE_BUCKET,
firebaseMessagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID,
firebaseAppId: process.env.FIREBASE_APP_ID,
firebaseMeasurementId: process.env.FIREBASE_MEASUREMENT_ID,
mysqlHost: process.env.MYSQL_HOST,
mysqlUser: process.env.MYSQL_USER,
mysqlPassword: process.env.MYSQL_PASSWORD,
mysqlDatabase: process.env.MYSQL_DATABASE,
firebaseAdminProjectId: process.env.FIREBASE_ADMIN_PROJECT_ID,
firebaseAdminClientEmail: process.env.FIREBASE_ADMIN_CLIENT_EMAIL,
firebaseAdminPrivateKey: process.env.FIREBASE_ADMIN_PRIVATE_KEY,
},
redis: {
host: process.env.REDIS_HOST || 'localhost',
port: process.env.REDIS_PORT || 6379,
pubSubHost: process.env.REDIS_PUBSUB_HOST || 'localhost',
pubSubPort: process.env.REDIS_PUBSUB_PORT || 6379,
},
},
modules: [
'@pinia/nuxt',
'@nuxtjs/tailwindcss'
],
plugins: [
'~/plugins/firebase.ts',
'~/plugins/user.ts'
],
buildModules: [
// 仅支持 Nuxt 2:
// https://composition-api.nuxtjs.org/getting-started/setup#quick-start
'@nuxtjs/composition-api/module',
'@pinia/nuxt',
]
})