forked from nuxt/website-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
40 lines (40 loc) · 1009 Bytes
/
nuxt.config.js
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
module.exports = {
head: {
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
css: [
'normalize.css',
'highlight.js/styles/github.css',
'~assets/scss/main.scss'
],
modules: [
['~/modules/sentry', {
project_id: process.env.SENTRY_PROJECT_ID,
public_key: process.env.SENTRY_PUBLIC_KEY,
private_key: process.env.SENTRY_PRIVATE_KEY
}]
],
plugins: [
{ src: '~/plugins/ga.js', ssr: false }
],
env: {
githubToken: '4aa6bcf919d238504e7db59a66d32e78281c0ad3',
docSearchApiKey: 'ff80fbf046ce827f64f06e16f82f1401'
},
loading: { color: '#41B883' },
router: {
scrollBehavior(to, from, savedPosition) {
// savedPosition is only available for popstate navigations (back button)
if (savedPosition) {
return savedPosition
}
return { x: 0, y: 0 }
}
}
}