From fdd1d5afb7dec4638647fab003afbb524f6ac9a8 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Tue, 10 Feb 2026 21:40:04 +0100 Subject: [PATCH] fix: streamline deployment --- next.config.mjs | 22 ++-------------------- package.json | 14 +++----------- tsconfig.json | 19 +------------------ 3 files changed, 6 insertions(+), 49 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 13c6ae2e..b9ca9eb3 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,9 +1,5 @@ import createNextIntlPlugin from 'next-intl/plugin'; -import { withSentryConfig } from '@sentry/nextjs'; -import path from 'path'; -import { fileURLToPath } from 'url'; - -const __dirname = path.dirname(fileURLToPath(import.meta.url)); +import withMintelConfig from '@mintel/next-config'; const withNextIntl = createNextIntlPlugin(); @@ -339,18 +335,4 @@ const nextConfig = { const nextIntlConfig = withNextIntl(nextConfig); -// GlitchTip is Sentry-compatible; we use the Sentry Next.js SDK. -// Source map upload is optional; we keep this config minimal. -export default withSentryConfig( - nextIntlConfig, - { - silent: !process.env.CI, - // Keep bundle size down; remove SDK debug logging. - treeshake: { removeDebugLogging: true }, - }, - // Sentry Webpack plugin options (not needed unless you upload sourcemaps) - { - // no sourcemap upload by default - authToken: undefined, - } -); +export default withMintelConfig(nextIntlConfig); diff --git a/package.json b/package.json index 195a0be1..6ed05cbb 100644 --- a/package.json +++ b/package.json @@ -2,18 +2,9 @@ "dependencies": { "@directus/sdk": "^18.0.3", "@mintel/mail": "^1.6.0", - "@react-email/components": "^1.0.6", - "@react-pdf/renderer": "^4.3.2", - "@sentry/nextjs": "^10.38.0", - "@swc/helpers": "^0.5.18", - "@types/cheerio": "^0.22.35", - "@types/leaflet": "^1.9.21", - "axios": "^1.13.2", - "cheerio": "^1.1.2", - "clsx": "^2.1.1", - "framer-motion": "^12.27.1", - "gray-matter": "^4.0.3", "@mintel/next-feedback": "^1.6.0", + "@mintel/next-config": "^1.6.0", + "@mintel/next-utils": "^1.6.0", "i18next": "^25.7.3", "jsdom": "^27.4.0", "leaflet": "^1.9.4", @@ -55,6 +46,7 @@ "autoprefixer": "^10.4.23", "eslint": "^9.18.0", "@mintel/eslint-config": "^1.6.0", + "@mintel/tsconfig": "^1.6.0", "husky": "^9.1.7", "lint-staged": "^16.2.7", "postcss": "^8.5.6", diff --git a/tsconfig.json b/tsconfig.json index 5dee1dbb..116822fd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,23 +1,6 @@ { + "extends": "@mintel/tsconfig/nextjs.json", "compilerOptions": { - "target": "ES2020", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": false, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "react-jsx", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], "baseUrl": ".", "paths": { "@/*": ["./*"],