This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
executable file
·152 lines (149 loc) · 4.07 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
import colors from "vuetify/es5/util/colors";
export default {
env: {
sheetsAPIKey: process.env.sheetsAPIKey,
sheetID: process.env.sheetID,
BACKEND_URL: process.env.BACKEND_URL,
INICIATIVES_DATA_SOURCE_URL: process.env.INICIATIVES_DATA_SOURCE_URL,
PDI_DATA_SOURCE_URL: process.env.PDI_DATA_SOURCE_URL,
SKILLS_DATA_SOURCE_URL: process.env.SKILLS_DATA_SOURCE_URL,
},
ssr: true,
target: "server",
/*
** Headers of the page
*/
head: {
titleTemplate: "Hub USPInovação",
title: "Hub USPInovação",
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
hid: "description",
name: "description",
content: process.env.npm_package_description || "",
},
{ name: "msapplication-TileColor", content: "#da532c" },
{ name: "theme-color", content: "#ffffff" },
],
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon/favicon.ico" },
{
rel: "stylesheet",
href:
"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons",
},
{
rel: "apple-touch-icon",
sizes: "180x180",
href: "/favicon/apple-touch-icon.png",
},
{
rel: "icon",
type: "image/png",
sizes: "32x32",
href: "/favicon/favicon-32x32.png",
},
{
rel: "icon",
type: "image/png",
sizes: "16x16",
href: "/favicon/favicon-16x16.png",
},
{ rel: "manifest", href: "/favicon/site.webmanifest" },
{
rel: "mask-icon",
href: "/favicon/safari-pinned-tab.svg",
color: "#5bbad5",
},
],
},
/*
** Customize the progress-bar color
*/
loading: { color: "#fff" },
/*
** Global CSS
*/
css: [],
/*
** Plugins to load before mounting the App
*/
plugins: [
{ src: "~/plugins/breakpoint.js" },
{ src: "~/plugins/vue-fuse.js", mode: "client" },
{ src: "~/plugins/vue-typer.js", mode: "client" },
{ src: "~/plugins/campi.js" },
{ src: "~/plugins/municipios.js" },
{ src: "~/plugins/knowledge_areas.js" },
{ src: "~/plugins/cnae.js" },
{ src: "~/plugins/company.js" },
{ src: "~/plugins/fuzzySearch.js" },
{ src: "~/plugins/indexer.js" },
{ src: "~/plugins/remove_accent.js" },
{ src: "~/plugins/services/fetch_companies.js" },
{ src: "~/plugins/services/fetch_disciplines.js" },
{ src: "~/plugins/services/fetch_iniciatives.js" },
{ src: "~/plugins/services/fetch_patents.js" },
{ src: "~/plugins/services/fetch_pdis.js" },
{ src: "~/plugins/services/fetch_skills.js" },
{ src: "~/plugins/services/get_company_data.js" },
{ src: "~/plugins/services/update_company.js" },
{ src: "~/plugins/matching/disciplines.js" },
{ src: "~/plugins/matching/company.js" },
{ src: "~/plugins/matching/patent.js" },
{ src: "~/plugins/matching/skill.js" },
{ src: "~/plugins/matching/iniciative.js" },
{ src: "~/plugins/v-mask.js", mode: "client" },
],
serverMiddleware: [{ path: "/", handler: "~/api/index.js" }],
/*
** Nuxt.js dev-modules
*/
buildModules: ["@nuxtjs/vuetify", "@nuxtjs/google-analytics"],
/*
** Nuxt.js modules
*/
modules: ["@nuxtjs/axios"],
/*
** vuetify module configuration
** https://github.com/nuxt-community/vuetify-module
*/
vuetify: {
customVariables: ["~/assets/variables.scss"],
treeShake: true,
theme: {
themes: {
light: {
primary: "#ffb163",
secondary: "#4AD4FF",
tertiary: "#108CB3",
error: colors.blue.darken1,
background: "#ececec",
},
options: {
customProperties: true,
},
},
},
},
publicRuntimeConfig: {
axios: {
baseURL: process.env.BACKEND_URL,
},
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
// eslint-disable-next-line no-unused-vars
extend(config, ctx) {},
},
googleAnalytics: {
id: process.env.GOOGLE_ANALYTICS_ID,
},
};