chore: prepare first release 1.0.1
Some checks failed
Code Quality / lint-and-build (push) Failing after 25s
Release Packages / release (push) Failing after 40s

This commit is contained in:
2026-02-01 01:01:16 +01:00
parent 9a0900e3ff
commit c0a739867f
23 changed files with 432 additions and 217 deletions

View File

@@ -1,16 +1,31 @@
# @mintel/next-config
Shared Next.js configuration wrapper for Mintel projects. Integrates `next-intl` and Sentry by default.
A powerful Next.js configuration wrapper that standardizes internationalization, error tracking, and security across all Mintel client websites.
## Usage
## ✨ Features
- **`next-intl` Integration**: Automatically wraps your config with the internationalization plugin.
- **Sentry/GlitchTip**: Pre-configured error tracking with treeshaking and silent CI builds.
- **Standalone Output**: Optimized for Docker deployments by default.
- **Security Headers**: Strict Content Security Policy (CSP) and SVG safety.
- **Analytics Proxy**: Built-in rewrites for Umami analytics (`/stats/*`) and GlitchTip (`/errors/*`).
## 🚀 Usage
In your `next.config.ts`:
```typescript
import mintelNextConfig from "@mintel/next-config";
/** @type {import('next').NextConfig} */
const nextConfig = {
// Your project specific config
// Your project specific config (redirects, etc.)
};
export default mintelNextConfig(nextConfig);
```
## 🌐 Environment Variables
The following variables are used by this config:
- `NEXT_PUBLIC_UMAMI_SCRIPT_URL`: URL to your Umami instance.
- `SENTRY_DSN`: Your GlitchTip/Sentry DSN.