-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.js.example
More file actions
66 lines (61 loc) · 1.7 KB
/
Copy pathnuxt.config.js.example
File metadata and controls
66 lines (61 loc) · 1.7 KB
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
export default {
target: 'static',
head: {
title: 'Artur Teixeira - Freelance Software Engineer',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
// Global site tag (gtag.js) - Google Analytics
__dangerouslyDisableSanitizers: ['script'],
script: [
{ src: 'https://www.googletagmanager.com/gtag/js?id=G-**********', async: true },
{
innerHTML: `window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-**********');`
}],
},
// Smooth Scrolling
router: {
scrollBehavior(to) {
if (to.hash) {
return window.scrollTo({
top: document.querySelector(to.hash).offsetTop - 32,
behavior: 'smooth'
})
}
return window.scrollTo({ top: 0, behavior: 'smooth' })
}
},
css: [],
plugins: [],
components: true,
buildModules: [
'@nuxt/typescript-build',
'@nuxtjs/tailwindcss',
],
modules: [
[
'@nuxtjs/firebase',
{
config: {
apiKey: '***************************************',
authDomain: '***-*******-*****.firebaseapp.com',
projectId: '***-*******-*****',
storageBucket: '***-*******-*****.appspot.com',
messagingSenderId: '************',
appId: '*:************:web:**********************',
measurementId: 'G-**********'
},
services: {
firestore: true
}
}
],
],
build: {},
}