2023-12-19 18:43:42 +01:00
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
modules: [
|
2024-09-02 14:50:56 +02:00
|
|
|
'@nuxt/eslint',
|
2023-12-19 18:43:42 +01:00
|
|
|
'@vueuse/nuxt',
|
|
|
|
'@unocss/nuxt',
|
|
|
|
'@pinia/nuxt',
|
|
|
|
'@nuxtjs/color-mode',
|
|
|
|
'@nuxt/devtools',
|
|
|
|
'nuxt-lodash',
|
|
|
|
'nuxt-headlessui',
|
|
|
|
'@nuxt/image',
|
2024-09-12 18:03:06 +02:00
|
|
|
'@vee-validate/nuxt',
|
2023-12-19 18:43:42 +01:00
|
|
|
],
|
|
|
|
sourcemap: {
|
|
|
|
server: true,
|
|
|
|
client: false,
|
|
|
|
},
|
|
|
|
pinia: {
|
|
|
|
storesDirs: ['~/composables'],
|
|
|
|
},
|
|
|
|
experimental: {
|
|
|
|
// when using generate, payload js assets included in sw precache manifest
|
|
|
|
// but missing on offline, disabling extraction it until fixed
|
|
|
|
payloadExtraction: false,
|
|
|
|
// typedPages: true,
|
|
|
|
componentIslands: true,
|
|
|
|
},
|
|
|
|
css: [
|
|
|
|
'@unocss/reset/tailwind.css',
|
|
|
|
],
|
|
|
|
colorMode: {
|
|
|
|
classSuffix: '',
|
|
|
|
},
|
2024-09-02 14:50:56 +02:00
|
|
|
eslint: {
|
|
|
|
config: {
|
|
|
|
stylistic: true,
|
|
|
|
},
|
|
|
|
},
|
2023-12-19 18:43:42 +01:00
|
|
|
nitro: {
|
|
|
|
preset: 'vercel',
|
|
|
|
esbuild: {
|
|
|
|
options: {
|
|
|
|
target: 'esnext',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
vite: {
|
|
|
|
build: {
|
|
|
|
target: 'esnext',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
lodash: {
|
|
|
|
prefix: '_',
|
|
|
|
},
|
2024-09-19 13:29:51 +02:00
|
|
|
runtimeConfig: {
|
|
|
|
app: {
|
|
|
|
github: {
|
|
|
|
appId: 0,
|
|
|
|
privateKey: '',
|
|
|
|
installationId: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-12-19 18:43:42 +01:00
|
|
|
})
|