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({
|
|
|
|
srcDir: 'src/',
|
|
|
|
target: 'static',
|
2022-08-05 11:17:09 +00:00
|
|
|
ssr: false,
|
|
|
|
telemetry: false,
|
2022-07-29 13:00:29 +00:00
|
|
|
buildModules: [
|
|
|
|
'@pinia/nuxt'
|
|
|
|
],
|
2022-07-29 14:23:57 +00:00
|
|
|
publicRuntimeConfig: {
|
|
|
|
serverBaseUrl: '/',
|
|
|
|
version,
|
|
|
|
},
|
2022-07-24 18:23:52 +00:00
|
|
|
})
|