@djangocfg/nextjs 2.1.33 → 2.1.35

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/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ var require_package = __commonJS({
14
14
  "package.json"(exports, module) {
15
15
  module.exports = {
16
16
  name: "@djangocfg/nextjs",
17
- version: "2.1.33",
17
+ version: "2.1.35",
18
18
  description: "Next.js server utilities: sitemap, health, OG images, contact forms, navigation, config",
19
19
  keywords: [
20
20
  "nextjs",
@@ -97,11 +97,13 @@ var require_package = __commonJS({
97
97
  files: [
98
98
  "dist",
99
99
  "src",
100
+ "bin",
100
101
  "README.md",
101
102
  "LICENSE"
102
103
  ],
103
104
  bin: {
104
- "djangocfg-docs": "./dist/ai/cli.mjs"
105
+ "djangocfg-docs": "./dist/ai/cli.mjs",
106
+ "nextjs-dev": "./bin/dev-with-browser.js"
105
107
  },
106
108
  scripts: {
107
109
  build: "tsup",
@@ -2433,9 +2435,6 @@ function createBaseNextConfig(options = {}) {
2433
2435
  const baseConfig = {
2434
2436
  reactStrictMode: true,
2435
2437
  trailingSlash: true,
2436
- // Turbopack config (empty to silence Next.js 16 warning about webpack config)
2437
- // Webpack config is still used for dev startup plugin and compression
2438
- turbopack: {},
2439
2438
  // Static export configuration
2440
2439
  ...isStaticBuild && {
2441
2440
  output: "export",
@@ -2512,6 +2511,9 @@ function createBaseNextConfig(options = {}) {
2512
2511
  ...options.experimental
2513
2512
  },
2514
2513
  // Webpack configuration
2514
+ // NOTE: Next.js 16 uses Turbopack by default in dev mode, which doesn't support webpack plugins.
2515
+ // DevStartupPlugin only runs in webpack mode (next dev --webpack).
2516
+ // For Turbopack compatibility, consider using a custom dev script for browser auto-open.
2515
2517
  webpack: (config, webpackOptions) => {
2516
2518
  const { isServer, dev } = webpackOptions;
2517
2519
  if (dev && !isServer) {