-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnuxt.config.ts
92 lines (82 loc) · 2.44 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
export default defineNuxtConfig({
// Having SSR allows us to use `nuxt generate`, turn it off if you don't care
ssr: true,
devtools: { enabled: true },
app: {
head: {
title: 'Nuxt + VueFire Blaze Plan Example',
link: [
{
href: 'https://cdn.jsdelivr.net/npm/water.css@2/out/water.css',
rel: 'stylesheet',
},
{
rel: 'icon',
type: 'image/svg+xml',
href: '/vuefire.svg',
},
],
},
},
css: ['~/assets/style.css'],
nitro: {
prerender: {
// these routes are not dependent on any data and can be prerendered
// it's a good idea to pre render all routes that you can
routes: ['/', '/analytics'],
},
preset: 'firebase',
// for the upcoming preset
firebase: {
gen: 2,
nodeVersion: '18',
},
},
modules: ['nuxt-vuefire', '@vueuse/nuxt'],
vuefire: {
emulators: {
// uncomment this line to run the application in production mode without emulators during dev
// enabled: false,
auth: {
options: {
disableWarnings: true,
},
},
},
auth: true,
appCheck: {
provider: 'ReCaptchaV3',
// site key, NOT secret key
key: '6LeS5q0nAAAAABH3u13ntLwuIOkiNjHlXJOXoN5T',
isTokenAutoRefreshEnabled: true,
},
config: {
apiKey: 'AIzaSyBsdR5gT1fFBF5c8YDUw_4Qcg2E_C9Pwn8',
authDomain: 'nuxt-vuefire-example-blaze.firebaseapp.com',
databaseURL:
'https://nuxt-vuefire-example-blaze-default-rtdb.firebaseio.com',
projectId: 'nuxt-vuefire-example-blaze',
storageBucket: 'nuxt-vuefire-example-blaze.appspot.com',
messagingSenderId: '254121855253',
appId: '1:254121855253:web:c1e3357402843d829e411c',
measurementId: 'G-LL0HQ2E3J2',
},
},
experimental: {
payloadExtraction: false,
},
// Customize this to your needs and try to server side render only what is needed
// https://nuxt.com/docs/guide/concepts/rendering#hybrid-rendering
routeRules: {
// Make some pages client only (since we have an SPA)
// useful for authenticated pages that require the user to be logged in to be
// displayed
'/admin': { ssr: false },
'/login': { ssr: false },
'/analytics': { ssr: false },
// you don't need to add ssr: true to any route, it's the default
// '/users': { ssr: true },
// '/posts/new': { ssr: true },
// '/emoji-panel': { swr: true },
},
})