.
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
const { SHARED_CONF } = require('./config')
|
||||
const config = require('./server/config').SHARED_CONF
|
||||
|
||||
module.exports = {
|
||||
mode: 'universal',
|
||||
|
||||
/*
|
||||
** Headers of the page
|
||||
*/
|
||||
head: {
|
||||
title: SHARED_CONF.title,
|
||||
title: config.title,
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||
{ hid: 'description', name: 'description', content: SHARED_CONF.description }
|
||||
{ hid: 'description', name: 'description', content: config.description }
|
||||
],
|
||||
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
|
||||
},
|
||||
|
||||
dev: (process.env.NODE_ENV !== 'production'),
|
||||
|
||||
serverMiddleware: [
|
||||
{ path: '/api', handler: '@/server/api/index.js' }
|
||||
],
|
||||
@@ -32,6 +32,7 @@ module.exports = {
|
||||
'bootstrap/dist/css/bootstrap.css',
|
||||
'element-ui/lib/theme-chalk/index.css',
|
||||
],
|
||||
|
||||
/*
|
||||
** Plugins to load before mounting the App
|
||||
*/
|
||||
@@ -41,7 +42,6 @@ module.exports = {
|
||||
'@/plugins/i18n', // localization plugin
|
||||
'@/plugins/vue-awesome', // icon
|
||||
{ src: '@/plugins/v-calendar', ssr: false }, // calendar, TO-REDO
|
||||
'@/plugins/initialize'
|
||||
],
|
||||
|
||||
/*
|
||||
@@ -56,8 +56,8 @@ module.exports = {
|
||||
** Axios module configuration
|
||||
*/
|
||||
axios: {
|
||||
baseURL: SHARED_CONF.baseurl + '/api',
|
||||
browserBaseURL: SHARED_CONF.baseurl + '/api',
|
||||
baseURL: config.baseurl + '/api',
|
||||
browserBaseURL: config.baseurl + '/api',
|
||||
prefix: '/api',
|
||||
// credentials: true
|
||||
// See https://github.com/nuxt-community/axios-module#options
|
||||
@@ -68,7 +68,7 @@ module.exports = {
|
||||
endpoints: {
|
||||
login: { url: '/auth/login', method: 'post', propertyName: 'token' },
|
||||
logout: false,
|
||||
user: { url: '/auth/user', method: 'get', propertyName: false }
|
||||
user: { url: '/auth/user', method: 'get', propertyName: false },
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -79,6 +79,9 @@ module.exports = {
|
||||
** Build configuration
|
||||
*/
|
||||
build: {
|
||||
// babel: {
|
||||
// presets: ['@nuxt/babel-preset-app']
|
||||
// },
|
||||
transpile: [/^element-ui/, /^vue-awesome/],
|
||||
splitChunks: {
|
||||
layouts: true
|
||||
|
||||
Reference in New Issue
Block a user