feat(landing): Add kontakt, datenschutz pages, integrate brevo newsletter and contact, add error-handler

This commit is contained in:
2026-01-11 10:57:45 +01:00
parent b5417ef7c6
commit d8b7e193a9
25 changed files with 1066 additions and 53 deletions

View File

@@ -0,0 +1,15 @@
import type { NuxtError } from 'nuxt/app'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook('vue:error', (error: unknown, _instance, info) => {
const statusCode = (error as NuxtError)?.statusCode
if (statusCode && statusCode >= 500) {
console.error(`[${statusCode}] Vue Error:`, error, info)
}
// Print out all errors that are not HTTP errors
if (!statusCode) {
console.error('[unknown] Vue Error:', error, info)
}
})
})