knowyt/client/nuxt.config.js
2022-04-24 22:15:32 +02:00

39 lines
889 B
JavaScript

const fs = require('fs')
const packageJson = fs.readFileSync('./package.json')
const version = JSON.parse(packageJson).version || 0
export default {
ssr: false,
srcDir: 'src/',
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',
],
components: true,
modules: ['@nuxtjs/axios'],
plugins: [
{ src: '~/plugins/engine', mode: 'client' },
{ src: '~/plugins/formatter', mode: 'client' },
{ src: '~/plugins/i18n', mode: 'client' },
],
axios: { proxy: true },
publicRuntimeConfig: {
serverBaseUrl: '/',
version,
},
proxy: {
'/api/': 'http://localhost:32039',
},
}