chore: prepare first release 1.0.1
This commit is contained in:
7
packages/next-config/CHANGELOG.md
Normal file
7
packages/next-config/CHANGELOG.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# @mintel/next-config
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Initial release of the Mintel factory packages.
|
||||
@@ -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.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mintel/next-config",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"registry": "https://npm.infra.mintel.me"
|
||||
|
||||
Reference in New Issue
Block a user