2020-06-19 17:10:44 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
/*
|
|
|
|
** Nuxt rendering mode
|
|
|
|
** See https://nuxtjs.org/api/configuration-mode
|
|
|
|
*/
|
|
|
|
mode: 'universal',
|
|
|
|
/*
|
2020-06-21 21:56:34 +08:00
|
|
|
** Render configuration
|
|
|
|
*/
|
|
|
|
render: {
|
|
|
|
csp: true
|
|
|
|
},
|
|
|
|
/*
|
|
|
|
** Environment variable configuration
|
|
|
|
*/
|
|
|
|
env: {
|
|
|
|
baseUrl: 'http://127.0.0.1:8099'
|
|
|
|
},
|
|
|
|
/*
|
2020-06-19 17:10:44 +08:00
|
|
|
** Headers of the page
|
|
|
|
** See https://nuxtjs.org/api/configuration-head
|
|
|
|
*/
|
|
|
|
head: {
|
2020-06-21 21:56:34 +08:00
|
|
|
title: 'RYMCU - 嵌入式知识学习交流平台',
|
2020-06-19 17:10:44 +08:00
|
|
|
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' }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
/*
|
|
|
|
** Global CSS
|
|
|
|
*/
|
|
|
|
css: [
|
|
|
|
'element-ui/lib/theme-chalk/index.css'
|
|
|
|
],
|
|
|
|
/*
|
|
|
|
** Plugins to load before mounting the App
|
|
|
|
** https://nuxtjs.org/guide/plugins
|
|
|
|
*/
|
|
|
|
plugins: [
|
|
|
|
'@/plugins/element-ui',
|
2020-06-21 21:56:34 +08:00
|
|
|
// '@/plugins/axios'
|
2020-06-19 17:10:44 +08:00
|
|
|
],
|
|
|
|
/*
|
|
|
|
** Nuxt.js dev-modules
|
|
|
|
*/
|
|
|
|
buildModules: [
|
|
|
|
],
|
|
|
|
/*
|
|
|
|
** Nuxt.js modules
|
|
|
|
*/
|
|
|
|
modules: [
|
2020-06-21 21:56:34 +08:00
|
|
|
'@nuxtjs/axios'
|
2020-06-19 17:10:44 +08:00
|
|
|
],
|
|
|
|
/*
|
|
|
|
** Build configuration
|
|
|
|
** See https://nuxtjs.org/api/configuration-build/
|
|
|
|
*/
|
|
|
|
build: {
|
|
|
|
transpile: [/^element-ui/],
|
2020-06-20 00:36:35 +08:00
|
|
|
},
|
|
|
|
proxy: {
|
2020-06-21 21:56:34 +08:00
|
|
|
'/api': {
|
|
|
|
target: 'http://localhost:8099/vertical/',
|
|
|
|
|
|
|
|
}
|
2020-06-19 17:10:44 +08:00
|
|
|
}
|
|
|
|
}
|