-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnuxt.config.js
106 lines (103 loc) · 2.33 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
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
96
97
98
99
100
101
102
103
104
105
106
const config_result = require('dotenv').config()
if (config_result.error) {
throw config_result.error
}
const api_key = process.env.API_KEY
const api_url = process.env.API_URL
const site_key = process.env.SITE_KEY
const port = process.env.PORT
const host = process.env.HOST
export default {
/*
** Nuxt target
** See https://nuxtjs.org/api/configuration-target
*/
target: 'server',
/*
** Headers of the page
** See https://nuxtjs.org/api/configuration-head
*/
head: {
title: 'MMUC Network',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Oswald|Patrick+Hand' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Bungee+Inline&display=swap' }
]
},
/*
** Global CSS
*/
css: [
],
/*
** Plugins to load before mounting the App
** https://nuxtjs.org/guide/plugins
*/
plugins: [
],
/*
** Auto import components
** See https://nuxtjs.org/api/configuration-components
*/
components: true,
/*
** Nuxt.js dev-modules
*/
buildModules: [
// Doc: https://github.com/nuxt-community/eslint-module
'@nuxtjs/eslint-module'
],
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://helmetjs.github.io/
'nuxt-helmet',
// Doc: https://bootstrap-vue.js.org
'bootstrap-vue/nuxt',
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios'
],
/*
** Nuxt helmet module configuration
** See https://www.npmjs.com/package/nuxt-helmet
*/
helmet: {
},
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {
headers: {
post: { 'api': api_key },
}
},
/*
** Build configuration
** See https://nuxtjs.org/api/configuration-build/
*/
build: {
},
/*
** Host configuration
*/
server: {
port: parseInt(port),
host: host
},
/*
** Environment variable configuration
*/
env: {
api: api_url,
recaptcha_key: site_key
}
}