2023-12-09 15:47:03 +01:00
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
2024-04-22 16:42:38 +02:00
|
|
|
import runtimeConfig from "./runtimeConfig"
|
|
|
|
|
import {sentryVitePlugin} from "@sentry/vite-plugin"
|
|
|
|
|
import sitemap from "./sitemap"
|
2024-06-06 18:03:41 +02:00
|
|
|
import gtm from "./gtm"
|
2023-12-18 10:35:00 +01:00
|
|
|
|
2023-12-09 15:47:03 +01:00
|
|
|
export default defineNuxtConfig({
|
2024-01-06 15:26:18 +01:00
|
|
|
loglevel: process.env.NUXT_LOG_LEVEL || 'info',
|
2024-04-22 16:42:38 +02:00
|
|
|
devtools: {enabled: false},
|
2023-12-09 15:47:03 +01:00
|
|
|
css: ['~/scss/app.scss'],
|
|
|
|
|
modules: [
|
|
|
|
|
'@pinia/nuxt',
|
|
|
|
|
'@vueuse/nuxt',
|
2023-12-31 12:39:01 +01:00
|
|
|
'@vueuse/motion/nuxt',
|
2024-01-02 16:35:16 +01:00
|
|
|
'nuxt-simple-sitemap',
|
2024-03-28 18:14:30 +01:00
|
|
|
'@nuxt/ui',
|
2024-06-06 18:03:41 +02:00
|
|
|
...process.env.NUXT_PUBLIC_GTM_CODE ? ['@zadigetvoltaire/nuxt-gtm'] : [],
|
2023-12-09 15:47:03 +01:00
|
|
|
],
|
2024-01-02 18:31:31 +01:00
|
|
|
build: {
|
2024-03-28 18:14:30 +01:00
|
|
|
transpile: process.env.NODE_ENV === "development" ? [] : ["vue-notion", "query-builder-vue-3", "vue-signature-pad"],
|
2023-12-09 15:47:03 +01:00
|
|
|
},
|
2024-01-02 16:35:16 +01:00
|
|
|
experimental: {
|
|
|
|
|
inlineRouteRules: true
|
|
|
|
|
},
|
2023-12-09 15:47:03 +01:00
|
|
|
sentry: {
|
2024-01-06 00:31:28 +01:00
|
|
|
dsn: process.env.NUXT_PUBLIC_SENTRY_DSN,
|
2024-01-13 18:17:24 +01:00
|
|
|
lazy: true,
|
2023-12-09 17:02:23 +01:00
|
|
|
},
|
2024-01-14 20:52:14 +01:00
|
|
|
gtag: {
|
|
|
|
|
id: process.env.NUXT_PUBLIC_GOOGLE_ANALYTICS_CODE,
|
|
|
|
|
},
|
2023-12-11 11:56:21 +01:00
|
|
|
components: [
|
|
|
|
|
{
|
|
|
|
|
path: '~/components/forms',
|
|
|
|
|
pathPrefix: false,
|
2023-12-24 10:40:09 +01:00
|
|
|
global: true,
|
2023-12-11 11:56:21 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '~/components/global',
|
|
|
|
|
pathPrefix: false,
|
|
|
|
|
},
|
2023-12-18 10:35:00 +01:00
|
|
|
{
|
|
|
|
|
path: '~/components/pages',
|
|
|
|
|
pathPrefix: false,
|
|
|
|
|
},
|
2024-03-28 18:14:30 +01:00
|
|
|
{
|
|
|
|
|
path: '~/components/open/integrations',
|
|
|
|
|
pathPrefix: false,
|
|
|
|
|
global: true,
|
|
|
|
|
},
|
2023-12-11 11:56:21 +01:00
|
|
|
'~/components',
|
|
|
|
|
],
|
2024-01-17 19:32:17 +01:00
|
|
|
sourcemap: true,
|
|
|
|
|
vite: {
|
|
|
|
|
plugins: [
|
|
|
|
|
// Put the Sentry vite plugin after all other plugins
|
|
|
|
|
sentryVitePlugin({
|
|
|
|
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
|
|
|
org: "opnform",
|
|
|
|
|
project: "opnform-vue",
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
},
|
2024-04-01 13:26:22 +02:00
|
|
|
tailwindcss: {
|
|
|
|
|
cssPath: ['~/scss/app.scss']
|
|
|
|
|
},
|
2024-03-29 14:50:55 +01:00
|
|
|
colorMode: {
|
|
|
|
|
preference: 'light',
|
|
|
|
|
fallback: 'light',
|
|
|
|
|
classPrefix: '',
|
|
|
|
|
},
|
2024-01-03 17:38:11 +01:00
|
|
|
sitemap,
|
2024-06-06 18:03:41 +02:00
|
|
|
runtimeConfig,
|
|
|
|
|
gtm
|
2023-12-09 15:47:03 +01:00
|
|
|
})
|