2022-07-24 18:23:52 +00:00
|
|
|
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
|
2022-07-24 18:23:52 +00:00
|
|
|
|
|
|
|
export default defineNuxtConfig({
|
2022-07-24 19:49:18 +00:00
|
|
|
ssr: false,
|
2022-07-24 18:23:52 +00:00
|
|
|
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',
|
|
|
|
}
|
2022-07-24 18:23:52 +00:00
|
|
|
})
|