-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
68 lines (64 loc) · 1.7 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
import path from 'path'
import fs from 'fs'
import { config } from 'dotenv'
const setEnvsFromDotEnvs = (env) => {
const envPath = path.resolve(process.cwd(), `.env.${env}`)
if (fs.existsSync(envPath)) {
config({ path: envPath })
}
else {
config()
}
}
setEnvsFromDotEnvs(process.env.NODE_ENV)
export default {
router: {
base: '/outorga-moderacao/'
},
env: {
apiBaseUrl: process.env.API_BASE_URL,
user: {
id: process.env.API_USER_ID,
info: process.env.API_USER_INFO
},
geo: {
url: process.env.API_GEOJSON_URL,
token: process.env.API_GEOJSON_TOKEN
},
mode: process.env.NODE_ENV
},
head: {
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Controle de cadastros da operações urbanas' },
{ property: 'og:title', content: 'SP Urbanismo | Cadastro OUCs' },
{ property: 'og:description', content: 'Controle de cadastros das Operações urbanas' },
{ property: 'og:site_name', content: 'Cadastro OUCs' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: process.env.NODE_ENV === 'dev' ? '/outorga-moderacao/favicon.ico' : 'favicon.ico' }
]
},
loading: { color: '#fff' },
css: [
'@/assets/main.scss',
'@/assets/formCadastro.scss'
],
plugins: [
'~/plugins/vee-validate',
'~/plugins/axios',
{ src: '~/plugins/vuelayers.js', ssr: false },
{ src: '~/plugins/v-scroll-lock', mode: 'client' }
],
modules: [
'@nuxtjs/axios',
'@nuxtjs/pwa'
],
build: {
transpile: [
'vee-validate/dist/rules'
]
}
}