-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
65 lines (63 loc) · 1.68 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
import type { VueFireNuxtModuleOptions } from 'nuxt-vuefire'
import type { BuildInfo } from './types'
const customConfig = {
type: 'service_account',
project_id: process.env.FIREBASE_PROJECT_ID,
private_key_id: process.env.FIREBASE_PRIVATE_KEY_ID,
private_key: process.env.FIREBASE_PRIVATE_KEY!.replaceAll(/\\n/gm, '\n'),
client_email: process.env.FIREBASE_CLIENT_EMAIL,
client_id: process.env.FIREBASE_CLIENT_ID,
auth_uri: process.env.FIREBASE_AUTH_URI,
token_uri: process.env.FIREBASE_TOKEN_URI,
auth_provider_x509_cert_url: process.env.FIREBASE_AUTH_PROVIDER_X509_CERT_URL,
client_x509_cert_url: process.env.FIREBASE_CLIENT_X509_CERT_URL,
}
export default defineNuxtConfig({
modules: [
'@vueuse/nuxt',
'@unocss/nuxt',
'@pinia/nuxt',
'nuxt-headlessui',
'@nuxtjs/color-mode',
'~/modules/build-env',
[
'nuxt-vuefire',
{
auth: true,
config: {
apiKey: 'AIzaSyBjHeKo26xCG1B2UG03pZQYp9sIz9pP7Uk',
authDomain: 'buku-v2.firebaseapp.com',
projectId: 'buku-v2',
storageBucket: 'buku-v2.appspot.com',
messagingSenderId: '630053346756',
appId: '1:630053346756:web:8e630c742a612a4f5a5891',
measurementId: 'G-LCCND887N7',
},
admin: {
serviceAccount: customConfig,
},
} as VueFireNuxtModuleOptions,
],
],
runtimeConfig: {
public: {
env: '',
buildInfo: {} as BuildInfo,
},
},
experimental: {
inlineSSRStyles: true,
reactivityTransform: true,
},
nitro: {
prerender: {
routes: ['/'],
},
},
css: [
'@unocss/reset/tailwind.css',
],
colorMode: {
classSuffix: '',
},
})