knowyt/client/nuxt.config.js

39 lines
889 B
JavaScript
Raw Normal View History

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' }
]
},
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' },
2022-04-24 20:15:32 +00:00
{ src: '~/plugins/i18n', mode: 'client' },
2022-04-12 12:16:03 +00:00
],
2021-07-30 18:18:04 +00:00
axios: { proxy: true },
2021-08-05 00:22:28 +00:00
publicRuntimeConfig: {
serverBaseUrl: '/',
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
}