@djangocfg/nextjs 2.1.32 → 2.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/nextjs",
3
- "version": "2.1.32",
3
+ "version": "2.1.34",
4
4
  "description": "Next.js server utilities: sitemap, health, OG images, contact forms, navigation, config",
5
5
  "keywords": [
6
6
  "nextjs",
@@ -83,11 +83,13 @@
83
83
  "files": [
84
84
  "dist",
85
85
  "src",
86
+ "bin",
86
87
  "README.md",
87
88
  "LICENSE"
88
89
  ],
89
90
  "bin": {
90
- "djangocfg-docs": "./dist/ai/cli.mjs"
91
+ "djangocfg-docs": "./dist/ai/cli.mjs",
92
+ "nextjs-dev": "./bin/dev-with-browser.js"
91
93
  },
92
94
  "scripts": {
93
95
  "build": "tsup",
@@ -99,7 +101,7 @@
99
101
  "ai-docs": "tsx src/ai/cli.ts"
100
102
  },
101
103
  "peerDependencies": {
102
- "next": "^15.5.9"
104
+ "next": "^16.0.10"
103
105
  },
104
106
  "dependencies": {
105
107
  "@ducanh2912/next-pwa": "^10.2.9",
@@ -109,9 +111,9 @@
109
111
  "semver": "^7.7.3"
110
112
  },
111
113
  "devDependencies": {
112
- "@djangocfg/imgai": "^2.1.32",
113
- "@djangocfg/layouts": "^2.1.32",
114
- "@djangocfg/typescript-config": "^2.1.32",
114
+ "@djangocfg/imgai": "^2.1.34",
115
+ "@djangocfg/layouts": "^2.1.34",
116
+ "@djangocfg/typescript-config": "^2.1.34",
115
117
  "@types/node": "^24.7.2",
116
118
  "@types/react": "19.2.2",
117
119
  "@types/react-dom": "19.2.1",
@@ -42,7 +42,11 @@ export interface BaseNextConfigOptions {
42
42
  transpilePackages?: string[];
43
43
  /** Additional optimize package imports (merged with defaults) */
44
44
  optimizePackageImports?: string[];
45
- /** Automatically open browser in dev mode (default: false) */
45
+ /**
46
+ * Automatically open browser in dev mode (default: false)
47
+ * NOTE: Only works with webpack mode in Next.js 16+ (Turbopack doesn't support webpack plugins)
48
+ * For Turbopack compatibility, use a custom dev script instead of this option
49
+ */
46
50
  openBrowser?: boolean;
47
51
  /** Check for @djangocfg/* package updates on startup (default: true) */
48
52
  checkUpdates?: boolean;
@@ -193,10 +197,13 @@ export function createBaseNextConfig(
193
197
  },
194
198
 
195
199
  // Webpack configuration
200
+ // NOTE: Next.js 16 uses Turbopack by default in dev mode, which doesn't support webpack plugins.
201
+ // DevStartupPlugin only runs in webpack mode (next dev --webpack).
202
+ // For Turbopack compatibility, consider using a custom dev script for browser auto-open.
196
203
  webpack: (config: WebpackConfig, webpackOptions: { isServer: boolean; dev: boolean; [key: string]: any }) => {
197
204
  const { isServer, dev } = webpackOptions;
198
205
 
199
- // Add dev startup plugin (client-side only in dev)
206
+ // Add dev startup plugin (client-side only in dev, webpack mode only)
200
207
  if (dev && !isServer) {
201
208
  if (!config.plugins) {
202
209
  config.plugins = [];