2022-11-18 07:41:36 +00:00
|
|
|
import { defineNuxtConfig } from 'nuxt/config'
|
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/',
|
2022-08-05 11:17:09 +00:00
|
|
|
ssr: false,
|
|
|
|
telemetry: false,
|
2022-11-18 07:41:36 +00:00
|
|
|
modules: [
|
2022-11-18 07:52:07 +00:00
|
|
|
'@pinia/nuxt',
|
|
|
|
'nuxt-icons',
|
2022-07-29 13:00:29 +00:00
|
|
|
],
|
2022-11-18 07:41:36 +00:00
|
|
|
runtimeConfig: {
|
2022-07-29 14:23:57 +00:00
|
|
|
serverBaseUrl: '/',
|
|
|
|
version,
|
|
|
|
},
|
2022-07-24 18:23:52 +00:00
|
|
|
})
|