-
Notifications
You must be signed in to change notification settings - Fork 37
/
nuxt.config.js
181 lines (163 loc) · 4.59 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
const routerBase = process.env.DEPLOY_ENV === 'prod' ? '/webapp/' : '/';
import metajs from './plugins/meta';
const meta = metajs();
export default {
// Disable server-side rendering (https://go.nuxtjs.dev/ssr-mode)
//target: 'static',
telemetry: true,
ssr: false,
router: {
mode: 'hash',
base: '/', //routerBase,
routerNameSplitter: "/",
middleware: ['router']
},
loadingIndicator: {
name: 'pulse',
color: ' #00A756',
background: '#FAFAFA'
},
env: {
baseUrl: 'https://api.ospic.app/api/',
localUrl: 'http://localhost:8080/api/'
},
// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
titleTemplate: 'Ospic',
title: 'Ospic-HMS',
meta: [
...meta,
{ charset: 'utf-8' },
/**Chrome, Firefox OS and Opera **/
{ name: "theme-color", content: "#00A756" },
/**Windows phone **/
{ name: "msapplication-navbutton-color", content: "#00A756" },
/**iOS Safari**/
{ name: "apple-mobile-web-app-status-bar-style", content: "#00A756" },
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' },
{ hid: 'description', name: 'description', content: 'Open source Hospital Management System' },
{ name: "google-site-verification", content: "MzkebCr5qPO9ZK3NNdvmWzeeAeMOUx54BMw-J24uSWE" },
//Twitter meta-data
{ hid: "twitter:site", name: "twitter:site", content: "ospicapp" },
{ hid: "twitter:card", name: "twitter:card", content: "summary_large_image" },
{ hid: "twitter:image:alt", name: "twitter:image:alt", content: "Ospic application" },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
// Global CSS (https://go.nuxtjs.dev/config-css)
css: [
'@/assets/css/styles.css'
],
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
plugins: [
"~/plugins/i18n.js",
'~/plugins/vuetify.js',
'~/plugins/axios',
'~/plugins/authaxios',
'~/plugins/pwa.client.js',
'~/plugins/vue-apexcharts.js',
'~/mixins/mixins.js',
'~/plugins/vuepersistence.js',
{ src: '~plugins/ga.js', mode: 'client' },
/*
{ src: '~/plugins/localStorage.js', ssr: false }
*/
],
// Auto import components (https://go.nuxtjs.dev/config-components)
components: true,
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
buildModules: [
// https://go.nuxtjs.dev/vuetify
'@nuxtjs/vuetify',
'@nuxtjs/toast',
],
// Modules (https://go.nuxtjs.dev/config-modules)
// https://go.nuxtjs.dev/axios
// https://go.nuxtjs.dev/pwa
modules: [
'@nuxtjs/axios',
'@nuxtjs/pwa',
'@nuxtjs/toast',
'@nuxtjs/sitemap',
'nuxt-material-design-icons',
['cookie-universal-nuxt', { parseJSON: false }],
],
toast: {
position: 'bottom-right',
duration: 4000,
theme: 'bubble',
singleton: true,
iconPack: 'mdi'
},
build: {
/*
** You can extend webpack config here
*/
publicPath: process.env.NODE_ENV === 'production' ? '/assets/' : '',
extend(_config, _ctx) { },
postcss: {
preset: {
features: {
'custom-properties': false
}
}
},
terser: {
extractComments: false // default was LICENSES
}
},
pwa: {
manifest: {
name: 'Ospic Hospital Management System',
short_name: 'Ospic Hms',
color_theme: "#2F4454",
background_color: "#2F4454",
lang: 'en',
useWebmanifestExtension: false
},
meta: {
/* meta options */
name: "Ospic Hospital Management System",
author: "Ospic",
description: "Hospital Management System",
lang: "en",
ogType: "website",
ogSiteName: "Ospic Hms",
ogTitle: "Ospic Hospital Management system",
ogDescription: "Hospital Management System",
ogHost: "https://app.ospic.app/",
ogImage: "https://docs.ospic.app/preview.png",
ogUrl: "",
twitterCard: "Ospic",
twitterSite: "ospicapp",
},
icon: {
iconSrc: '/static/icon.png'
}
},
/**Sitemap file */
sitemap: {
hostname: 'https://app.ospic.app',
gzip: false,
defaults: {
changefreq: 'daily',
priority: 1,
lastmod: new Date()
},
filter({ routes }) {
return routes.map(route => {
route.url = `#/${route.url}`
return route
})
}
},
// Axios module configuration (https://go.nuxtjs.dev/config-axios)
axios: {},
// Build Configuration (https://go.nuxtjs.dev/config-build)
server: {
port: 8000, // default: 3000
host: "0.0.0.0" // default: localhost
}
}