This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnuxt.config.ts
81 lines (73 loc) · 1.7 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
import { readFileSync } from 'node:fs'
import { resolve } from 'node:path'
const __dirname = new URL('.', import.meta.url).pathname
const vuefirePkg = JSON.parse(
readFileSync(resolve(__dirname, 'node_modules/vuefire/package.json'), 'utf-8')
)
const nuxtVuefirePkg = JSON.parse(
readFileSync(
resolve(__dirname, 'node_modules/nuxt-vuefire/package.json'),
'utf-8'
)
)
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: ['nuxt-vuefire'],
ssr: true,
devtools: {
enabled: true,
experimental: {
timeline: true,
},
},
nitro: {
preset: 'firebase',
firebase: {
gen: 2,
nodeVersion: '18',
},
prerender: {
crawlLinks: false,
routes: ['/', '/login'],
ignore: ['/posts/others'],
},
},
runtimeConfig: {
public: {
vuefireVersion: vuefirePkg.version,
nuxtVuefireVersion: nuxtVuefirePkg.version,
},
},
app: {
head: {
title: 'Nuxt + VueFire',
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'],
vuefire: {
auth: {
enabled: true,
},
config: {
apiKey: 'AIzaSyCvPJk1gTgga_H7SS6YKgQTSBwBYWzwWBE',
authDomain: 'nuxtparaeduardo.firebaseapp.com',
projectId: 'nuxtparaeduardo',
storageBucket: 'nuxtparaeduardo.appspot.com',
messagingSenderId: '817686702603',
appId: '1:817686702603:web:6cc63067ca20f6e5c1350e',
},
},
// TODO: to add with ssr
// routeRules: {},
})