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')
|
|
|
|
}
|
2023-12-18 09:35:00 +00:00
|
|
|
|
2023-12-22 13:59:42 +00:00
|
|
|
const preRenderedRoutes = [
|
2023-12-18 09:35:00 +00:00
|
|
|
'/',
|
|
|
|
'/ai-form-builder',
|
|
|
|
'/login',
|
|
|
|
'/register',
|
2023-12-22 13:59:42 +00:00
|
|
|
// '/privacy-policy',
|
|
|
|
// '/terms-conditions',
|
|
|
|
'/templates',
|
|
|
|
'/templates/*',
|
|
|
|
].reduce((acc, curr) => (acc[curr] = {prerender: true}, acc), {});
|
2023-12-18 09:35:00 +00:00
|
|
|
|
2023-12-09 14:47:03 +00:00
|
|
|
export default defineNuxtConfig({
|
|
|
|
devtools: {enabled: true},
|
|
|
|
css: ['~/scss/app.scss'],
|
|
|
|
modules: [
|
|
|
|
'@pinia/nuxt',
|
|
|
|
'@vueuse/nuxt',
|
2023-12-31 11:39:01 +00:00
|
|
|
'@vueuse/motion/nuxt',
|
|
|
|
'nuxt3-notifications'
|
2023-12-09 14:47:03 +00:00
|
|
|
],
|
|
|
|
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,
|
2023-12-24 09:40:09 +00:00
|
|
|
global: true,
|
2023-12-11 10:56:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '~/components/global',
|
|
|
|
pathPrefix: false,
|
|
|
|
},
|
2023-12-18 09:35:00 +00:00
|
|
|
{
|
|
|
|
path: '~/components/pages',
|
|
|
|
pathPrefix: false,
|
|
|
|
},
|
2023-12-11 10:56:21 +00:00
|
|
|
'~/components',
|
|
|
|
],
|
2023-12-22 13:59:42 +00:00
|
|
|
routeRules: { ... preRenderedRoutes}
|
2023-12-09 14:47:03 +00:00
|
|
|
})
|