-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathnuxt.config.js
55 lines (55 loc) · 1.29 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
export default {
srcDir: 'app',
/*
** Headers of the page
*/
head: {
title: 'Nuxt Firebase SNS Example',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Nuxt.js project' }
],
link: [
{ rel: 'stylesheet', href: 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' },
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
/*
** Customize the progress bar color
*/
css: [
'~/assets/base.css'
],
plugins: [
'~/plugins/firebase'
],
loading: { color: '#00d1b2' },
/*
** Build configuration
*/
env: {
APIKEY: process.env.APIKEY,
AUTHDOMAIN: process.env.AUTHDOMAIN,
DATABASEURL: process.env.DATABASEURL,
PROJECTID: process.env.PROJECTID,
STORAGEBUCKET: process.env.STORAGEBUCKET,
MESSAGINGSENDERID: process.env.MESSAGINGSENDERID,
APPID: process.env.APPID
},
build: {
babel: {
presets({ isServer }) {
return [
[
require.resolve('@nuxt/babel-preset-app'),
{
buildTarget: isServer ? 'server' : 'client',
corejs: { version: 3 }
}
]
]
}
}
}
}