-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
95 lines (94 loc) · 2.59 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
93
94
95
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
pages:true,
modules: [
'nuxt-vuefire',
],
ssr: true,
vuefire: {
auth: true,
config: {
apiKey: process.env.FIREBASE_API_KEY,
authDomain: process.env.FIREBASE_AUTH_DOMAIN,
projectId: process.env.FIREBASE_PROJECT_ID,
appId: process.env.FIREBASE_APP_ID,
storageBucket: process.env.FIREBASE_STORAGE_BUCKET,
messagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID,
measurementId: process.env.FIREBASE_MEASUREMENT_ID
},
},
routeRules: {
'/auth/sign-out': {ssr: false}
},
runtimeConfig: {
apiKey: process.env.FIREBASE_API_KEY,
authDomain: process.env.FIREBASE_AUTH_DOMAIN,
projectId: process.env.FIREBASE_PROJECT_ID,
appId: process.env.FIREBASE_APP_ID,
storageBucket: process.env.FIREBASE_STORAGE_BUCKET,
messagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID,
measurementId: process.env.FIREBASE_MEASUREMENT_ID,
googleMapsApiKey: process.env.GOOGLE_MAPS_API_KEY, //For the server-side geocoding API
public: {
googleMapsApiKey: process.env.GOOGLE_MAPS_API_KEY, //For the client-side embedded Google Map
gaMeasurementId: process.env.GA_MEASUREMENT_ID,
}
},
app: {
head: {
htmlAttrs: {
lang: 'en'
},
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
title: 'IN2IT Chicago',
link: [
{
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css',
rel: 'stylesheet',
crossorigin: 'anonymous'
},
{
rel: 'preconnect',
href: 'https://fonts.googleapis.com'
},
{
rel: 'preconnect',
href: 'https://fonts.gstatic.com'
},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap'
},
],
script: [
{
src: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js',
integrity: 'sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p',
crossorigin: 'anonymous'
},
{
src: `https://maps.googleapis.com/maps/api/js?key=${process.env.GOOGLE_MAPS_API_KEY}&libraries=places&callback=initMap`,
async: true,
defer: true
},
{
src: `https://www.googletagmanager.com/gtag/js?id=${process.env.GA_MEASUREMENT_ID}`,
async: true
},
{
children: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${process.env.GA_MEASUREMENT_ID}');
`,
type: 'text/javascript',
},
]
}
},
css: [
'~/assets/css/styles.css'
]
})