knowyt/client/nuxt.config.ts

21 lines
414 B
TypeScript
Raw Normal View History

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
export default defineNuxtConfig({
srcDir: 'src/',
ssr: false,
telemetry: false,
2022-11-18 07:41:36 +00:00
modules: [
'@pinia/nuxt',
'nuxt-icons',
2022-07-29 13:00:29 +00:00
],
2022-11-18 07:41:36 +00:00
runtimeConfig: {
public: {
serverBaseUrl: '/',
version,
},
2022-07-29 14:23:57 +00:00
},
})