fix: streamline deployment
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
import createNextIntlPlugin from 'next-intl/plugin';
|
import createNextIntlPlugin from 'next-intl/plugin';
|
||||||
import { withSentryConfig } from '@sentry/nextjs';
|
import withMintelConfig from '@mintel/next-config';
|
||||||
import path from 'path';
|
|
||||||
import { fileURLToPath } from 'url';
|
|
||||||
|
|
||||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
||||||
|
|
||||||
const withNextIntl = createNextIntlPlugin();
|
const withNextIntl = createNextIntlPlugin();
|
||||||
|
|
||||||
@@ -339,18 +335,4 @@ const nextConfig = {
|
|||||||
|
|
||||||
const nextIntlConfig = withNextIntl(nextConfig);
|
const nextIntlConfig = withNextIntl(nextConfig);
|
||||||
|
|
||||||
// GlitchTip is Sentry-compatible; we use the Sentry Next.js SDK.
|
export default withMintelConfig(nextIntlConfig);
|
||||||
// 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,
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|||||||
14
package.json
14
package.json
@@ -2,18 +2,9 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@directus/sdk": "^18.0.3",
|
"@directus/sdk": "^18.0.3",
|
||||||
"@mintel/mail": "^1.6.0",
|
"@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-feedback": "^1.6.0",
|
||||||
|
"@mintel/next-config": "^1.6.0",
|
||||||
|
"@mintel/next-utils": "^1.6.0",
|
||||||
"i18next": "^25.7.3",
|
"i18next": "^25.7.3",
|
||||||
"jsdom": "^27.4.0",
|
"jsdom": "^27.4.0",
|
||||||
"leaflet": "^1.9.4",
|
"leaflet": "^1.9.4",
|
||||||
@@ -55,6 +46,7 @@
|
|||||||
"autoprefixer": "^10.4.23",
|
"autoprefixer": "^10.4.23",
|
||||||
"eslint": "^9.18.0",
|
"eslint": "^9.18.0",
|
||||||
"@mintel/eslint-config": "^1.6.0",
|
"@mintel/eslint-config": "^1.6.0",
|
||||||
|
"@mintel/tsconfig": "^1.6.0",
|
||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
"lint-staged": "^16.2.7",
|
"lint-staged": "^16.2.7",
|
||||||
"postcss": "^8.5.6",
|
"postcss": "^8.5.6",
|
||||||
|
|||||||
@@ -1,23 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "@mintel/tsconfig/nextjs.json",
|
||||||
"compilerOptions": {
|
"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": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./*"],
|
"@/*": ["./*"],
|
||||||
|
|||||||
Reference in New Issue
Block a user