opnform/client/nuxt.config.ts

56 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-12-09 14:47:03 +00:00
// https://nuxt.com/docs/api/configuration/nuxt-config
import opnformConfig from "./opnform.config";
const modules = [
'@pinia/nuxt',
'@vueuse/nuxt',
'@vueuse/motion/nuxt'
]
if (opnformConfig.sentry_dsn) {
modules.push('@nuxtjs/sentry')
}
export default defineNuxtConfig({
devtools: {enabled: true},
css: ['~/scss/app.scss'],
modules: [
'@pinia/nuxt',
'@vueuse/nuxt',
'@vueuse/motion/nuxt'
],
postcss: {
plugins: {
'postcss-import': {},
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
},
sentry: {
dsn: opnformConfig.sentry_dsn,
2023-12-09 16:02:23 +00:00
},
2023-12-11 10:56:21 +00:00
components: [
{
path: '~/components/forms',
pathPrefix: false,
},
{
path: '~/components/global',
pathPrefix: false,
},
'~/components',
],
2023-12-09 16:02:23 +00:00
routeRules: {
'/ai-form-builder': {
2023-12-11 10:56:21 +00:00
swr: 60 * 60
2023-12-09 16:02:23 +00:00
},
'/privacy-policy': {
2023-12-11 10:56:21 +00:00
swr: 60 * 60
2023-12-09 16:02:23 +00:00
},
'/terms-conditions': {
2023-12-11 10:56:21 +00:00
swr: 60 * 60
2023-12-09 16:02:23 +00:00
},
2023-12-09 14:47:03 +00:00
}
})