19 lines
389 B
TypeScript
19 lines
389 B
TypeScript
import { defineNuxtConfig } from 'nuxt/config'
|
|
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,
|
|
modules: [
|
|
'@pinia/nuxt',
|
|
'nuxt-icons',
|
|
],
|
|
runtimeConfig: {
|
|
serverBaseUrl: '/',
|
|
version,
|
|
},
|
|
})
|