-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
99 lines (99 loc) · 2.16 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
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: 'Source Code | An open source library for computer science',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
{name: 'theme-color', content: '#2974fa'},
{name: 'msapplication-TileColor', content: '#2974fa'},
{property: 'og:site_name', content: 'Source Code'},
{property: 'og:image', content: ''},
{property: 'og:type', content: 'website'},
{property: 'twitter:card', content: 'summary_large_image'}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css?family=Montserrat:200,400,700&Source+Code+Pro&display=swap'
}
],
script: [
{src: 'https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver', body: true}
]
},
axios: {
proxy: true
},
proxy: {
'/api/': {target: undefined},
'/files/': {target: undefined},
'/auth/': {target: undefined}
},
auth: {
strategies: {
local: {
endpoints: {
login: {url: 'auth/login', method: 'post', propertyName: 'token'},
user: {url: 'auth/me', method: 'get', propertyName: false},
logout: false
}
}
},
redirect: {
home: '/',
callback: false,
logout: '/'
},
plugins: [{ src: '~/plugins/axios', ssr: true }]
},
moment: {
defaultLocale: 'fr',
locales: ['fr']
},
/*
** Customize the progress-bar color
*/
loading: '~/components/Loading.vue',
/*
** Global CSS
*/
css: [
'~/assets/css/app.scss'
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/notifications',
'~/plugins/validator'
],
/*
** Nuxt.js dev-modules
*/
buildModules: [
'@nuxt/typescript-build',
'nuxt-typed-vuex',
'@nuxtjs/moment'
],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/axios',
'@nuxtjs/auth'
],
/*
** Build configuration
*/
build: {
transpile: [
"vee-validate/dist/rules",
"/nuxt-typed-vuex/"
]
}
};