knowyt/client/nuxt.config.ts

24 lines
467 B
TypeScript
Raw Normal View History

import { defineNuxtConfig } from 'nuxt'
2022-07-29 14:23:57 +00:00
import fs from 'fs'
const packageJson = fs.readFileSync('./package.json', 'utf-8')
const version = JSON.parse(packageJson).version || 0
export default defineNuxtConfig({
ssr: false,
srcDir: 'src/',
target: 'static',
2022-07-29 13:00:29 +00:00
modules: [
'@nuxtjs/proxy',
],
buildModules: [
'@pinia/nuxt'
],
2022-07-29 14:23:57 +00:00
publicRuntimeConfig: {
serverBaseUrl: '/',
version,
},
2022-07-26 20:25:30 +00:00
proxy: {
'/api/': 'http://localhost:32039',
}
})