2022-03-09 08:15:17 +00:00
|
|
|
const fs = require('fs')
|
|
|
|
const packageJson = fs.readFileSync('./package.json')
|
|
|
|
const version = JSON.parse(packageJson).version || 0
|
|
|
|
|
2021-07-30 14:54:40 +00:00
|
|
|
export default {
|
|
|
|
ssr: false,
|
2021-07-30 18:18:04 +00:00
|
|
|
srcDir: 'src/',
|
2021-07-30 14:54:40 +00:00
|
|
|
target: 'static',
|
|
|
|
head: {
|
|
|
|
title: 'Know Your Teammates',
|
|
|
|
meta: [
|
|
|
|
{ charset: 'utf-8' },
|
|
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
|
|
],
|
|
|
|
link: [
|
|
|
|
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
|
|
|
]
|
|
|
|
},
|
2021-08-12 21:42:43 +00:00
|
|
|
css: [
|
|
|
|
'@/assets/css/fonts',
|
|
|
|
'@/assets/css/base',
|
|
|
|
],
|
2021-07-30 14:54:40 +00:00
|
|
|
components: true,
|
2021-07-30 18:18:04 +00:00
|
|
|
modules: ['@nuxtjs/axios'],
|
2022-04-12 12:16:03 +00:00
|
|
|
plugins: [
|
|
|
|
{ src: '~/plugins/engine', mode: 'client' },
|
|
|
|
{ src: '~/plugins/formatter', mode: 'client' },
|
|
|
|
],
|
2021-07-30 18:18:04 +00:00
|
|
|
axios: { proxy: true },
|
2021-08-05 00:22:28 +00:00
|
|
|
publicRuntimeConfig: {
|
2021-08-15 15:11:56 +00:00
|
|
|
serverBaseUrl: '/',
|
2022-03-09 08:15:17 +00:00
|
|
|
version,
|
2021-08-05 00:22:28 +00:00
|
|
|
},
|
2021-07-30 18:18:04 +00:00
|
|
|
proxy: {
|
|
|
|
'/api/': 'http://localhost:32039',
|
|
|
|
},
|
2021-07-30 14:54:40 +00:00
|
|
|
}
|