forked from highlyintegratedgayhijinks/keydraw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.js
More file actions
53 lines (45 loc) · 944 Bytes
/
Copy pathnuxt.config.js
File metadata and controls
53 lines (45 loc) · 944 Bytes
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
require('dotenv').config()
const routerBase = process.env.DEPLOY_ENV === 'GH_PAGES' ? {
router: {
mode: 'hash',
base: process.env.DEPLOY_DIRECTORY || '/keydraw/',
}
} : {
//
}
module.exports = {
mode: 'spa',
css: [
'~/assets/main.scss'
],
head: {
link: [
{
rel: 'icon',
type: 'image/png',
href: 'favicon2.png',
},
],
},
modules: [
'nuxt-clipboard2',
'@nuxtjs/dotenv',
// '@nuxtjs/webpackmonitor',
'@nuxtjs/axios',
['nuxt-fontawesome', {
component: 'fa',
imports: [{
set: '@fortawesome/fontawesome-free-solid',
icons: ['faArrowsAlt', 'faLock', 'faKeyboard', 'faSpaceShuttle', 'faCreditCard'],
}],
}],
],
...routerBase,
env: {
API_URL: process.env.API_URL || 'http://127.0.0.1:3000',
WS_URL: process.env.WS_URL || 'http://127.0.0.1:3000/cable',
},
axios: {
proxyHeaders: true,
},
}