opnform-host-nginx/client/nuxt.config.ts

57 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-12-09 15:47:03 +01:00
// https://nuxt.com/docs/api/configuration/nuxt-config
import runtimeConfig from "./runtimeConfig";
2023-12-09 15:47:03 +01:00
import opnformConfig from "./opnform.config";
2024-01-02 16:35:16 +01:00
import sitemap from "./sitemap";
2023-12-18 10:35:00 +01:00
2023-12-09 15:47:03 +01:00
export default defineNuxtConfig({
2024-01-02 18:31:31 +01:00
site: {
url: opnformConfig.app_url
},
2023-12-09 15:47:03 +01:00
devtools: {enabled: true},
css: ['~/scss/app.scss'],
modules: [
'@pinia/nuxt',
'@vueuse/nuxt',
'@vueuse/motion/nuxt',
2024-01-02 16:35:16 +01:00
'nuxt3-notifications',
'nuxt-simple-sitemap',
2024-01-06 00:31:28 +01:00
'@nuxt/image',
2024-01-02 16:35:16 +01:00
// ... opnformConfig.sentry_dsn ? ['@nuxtjs/sentry'] : [],
2023-12-09 15:47:03 +01:00
],
2024-01-02 18:31:31 +01:00
build: {
transpile: ["vue-notion"],
},
2023-12-09 15:47:03 +01:00
postcss: {
plugins: {
'postcss-import': {},
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
},
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,
2023-12-09 17:02:23 +01:00
},
2023-12-11 11:56:21 +01:00
components: [
{
path: '~/components/forms',
pathPrefix: false,
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,
},
2023-12-11 11:56:21 +01:00
'~/components',
],
sitemap,
runtimeConfig
2023-12-09 15:47:03 +01:00
})