elk/nuxt.config.ts
2022-11-23 07:27:01 +08:00

40 lines
787 B
TypeScript

export default defineNuxtConfig({
ssr: false,
modules: [
'@vueuse/nuxt',
'@unocss/nuxt',
'@pinia/nuxt',
'@nuxtjs/color-mode',
],
experimental: {
reactivityTransform: true,
inlineSSRStyles: false,
},
css: [
'@unocss/reset/tailwind.css',
'~/styles/vars.css',
'~/styles/global.css',
],
colorMode: {
classSuffix: '',
},
alias: {
querystring: 'rollup-plugin-node-polyfills/polyfills/qs',
},
vite: {
define: {
__BUILD_TIME__: JSON.stringify(new Date().toISOString()),
},
build: {
target: 'esnext',
},
},
postcss: {
plugins: {
'postcss-nested': {},
},
},
runtimeConfig: {
registedAppsUrl: process.env.APPS_JSON_URL || 'http://localhost:3000/registered-apps.json',
},
})