ClearBowl/front/nuxt.config.js

76 lines
1.4 KiB
JavaScript
Raw Normal View History

export default {
mode: 'universal',
/*
** Headers of the page
*/
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: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'view-design/dist/styles/iview.css'
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'@/plugins/view-design'
],
/*
** Nuxt.js dev-modules
*/
buildModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/axios',
'@nuxtjs/auth'
],
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
},
},
router: {
middleware: ['auth']
},
auth: {
strategies: {
local: {
endpoints: {
login: { url: '/user/login', method: 'post', propertyName: 'data.token' },
logout: false,
user: { url: 'user/me', method: 'get', propertyName: 'data' }
},
tokenRequired: true,
tokenType: 'bearer'
}
}
},
axios:{
2019-12-05 14:49:43 +01:00
baseURL:"https://clearbowl-api.herokuapp.com/api"
}
}