Contents

@posthog/nextjs-config

1.12.2

Patch Changes

  • #5664 a7485da Thanks @ioannisj! - Bump @posthog/cli to 0.19.1 so builds outside a git checkout that set only a release version upload source maps with a warning instead of failing with "Release fields are incomplete". (2026-11-11)
  • Updated dependencies [a7485da]:

1.12.1

Patch Changes

1.12.0

Minor Changes

  • #5398 88f8655 Thanks @turnipdabeets! - Fail webpack, Next.js webpack, and Nuxt builds when PostHog cannot process or upload source maps; set sourcemaps.failOnError: false to log the error and continue the build instead. (2026-10-23)

Patch Changes

1.11.6

Patch Changes

1.11.5

Patch Changes

1.11.4

Patch Changes

  • #5334 0d2c39d Thanks @hpouillot! - Correctly instrument Next.js 16 builds using --webpack instead of treating them as Turbopack builds. (2026-10-21)

  • #5334 0d2c39d Thanks @hpouillot! - Prevent stale webpack runtime caches in Next.js by compiling event release IDs before asset hashing. (2026-10-21)

  • Updated dependencies [0d2c39d]:

1.11.3

Patch Changes

  • #5282 9b7ef84 Thanks @marandaneto! - Use the package’s own PostHog CLI to prevent sourcemap upload failures when an older CLI is installed elsewhere in a monorepo. (2026-10-13)

1.11.2

Patch Changes

  • #5202 7199f24 Thanks @hpouillot! - Support immutable Next.js 16 Turbopack sourcemaps without rewriting build assets, and require a compatible posthog-js runtime for native debug and release IDs. (2026-10-09)
  • Updated dependencies [7199f24]:

1.11.1

Patch Changes

  • #4768 09c6b93 Thanks @marandaneto! - Delete webpack server source maps after upload without leaving them in Next.js deployment traces. (2026-09-04)

1.11.0

Minor Changes

  • #4705 dd5888a Thanks @ablaszkiewicz! - Change the default sourcemaps.releaseMode to event: set sourcemaps.releaseMode: 'symbol-set', or POSTHOG_RELEASE_MODE=symbol-set, to keep binding uploaded symbol sets to a release. The @posthog/plugin-utils bump is major, so an installed plugin keeps the old default until the plugin itself is upgraded.

    event mode requires a posthog-cli with release resolve and --release-mode, and posthog-js 1.409.0, posthog-node 5.47.0, or @posthog/core 1.46.0 at runtime. An older CLI fails a rollup build and skips the upload on webpack and Next.js. An older SDK reports no release on exceptions. (2026-09-02)

Patch Changes

  • #4737 c589ab8 Thanks @cat-ph! - Bump @posthog/cli to ~0.16.2, which fixes a race in sourcemap process: inject and upload used to walk the directory roots separately, so a bundler still writing into the output directory mid-run (e.g. Turbopack's background filesystem-cache flush on Next.js 16.3+) could hand upload a chunk inject never stamped and abort the build with "Chunk ID not found". The CLI now uploads exactly the pairs it injected, and --delete-after cleanup skips files that vanished or changed after upload instead of failing the build. (2026-09-02)
  • Updated dependencies [c589ab8, dd5888a]:

1.10.0

Minor Changes

  • #4563 530d88b Thanks @ablaszkiewicz! - Add experimental sourcemaps.releaseMode: 'event' to the webpack plugin and Next.js config. In event mode posthog-cli resolves the release once and injects its id into every chunk on disk, so exceptions report their release directly instead of it being bound to the uploaded symbol sets, and chunk ids are content-derived so a rebuild of unchanged code reuses the symbol set already uploaded. On webpack >= 5.104 the plugin also turns on webpack's own debug ids, which the CLI adopts as chunk ids, so one id identifies a chunk across the whole toolchain. The option defaults to the POSTHOG_RELEASE_MODE environment variable and then to symbol-set, which behaves exactly as before. Event mode needs a posthog-cli with the release resolve command. (2026-08-24)

Patch Changes

  • #4563 530d88b Thanks @ablaszkiewicz! - Bump @posthog/cli to ~0.14.1, which makes sourcemap inject --release-mode=event adopt a bundler-emitted ECMA-426 debug id as the chunk id instead of deriving its own, so the ids webpack stamps into each chunk are the ones the CLI uploads against. (2026-08-24)
  • Updated dependencies [530d88b, 530d88b]:

1.9.70

Patch Changes

1.9.69

Patch Changes

1.9.68

Patch Changes

  • #3764 5b125c1 Thanks @emmayusufu! - Strip dangling //# sourceMappingURL= comments from Turbopack browser chunks when deleteAfterUpload is set, so deleted source maps are no longer referenced (and 404) in production. (2026-06-16)

1.9.67

Patch Changes

1.9.66

Patch Changes

1.9.65

Patch Changes

1.9.64

Patch Changes

1.9.63

Patch Changes

1.9.62

Patch Changes

1.9.61

Patch Changes

1.9.60

Patch Changes

1.9.59

Patch Changes

1.9.58

Patch Changes

1.9.57

Patch Changes

1.9.56

Patch Changes

1.9.55

Patch Changes

1.9.54

Patch Changes

1.9.53

Patch Changes

1.9.52

Patch Changes

1.9.51

Patch Changes

1.9.50

Patch Changes

1.9.49

Patch Changes

1.9.48

Patch Changes

1.9.47

Patch Changes

1.9.46

Patch Changes

1.9.45

Patch Changes

1.9.44

Patch Changes

1.9.43

Patch Changes

1.9.42

Patch Changes

1.9.41

Patch Changes

1.9.40

Patch Changes

1.9.39

Patch Changes

1.9.38

Patch Changes

1.9.37

Patch Changes

1.9.36

Patch Changes

1.9.35

Patch Changes

1.9.34

Patch Changes

1.9.33

Patch Changes

1.9.32

Patch Changes

1.9.31

Patch Changes

1.9.30

Patch Changes

1.9.29

Patch Changes

1.9.28

Patch Changes

1.9.27

Patch Changes

1.9.26

Patch Changes

1.9.25

Patch Changes

1.9.24

Patch Changes

1.9.23

Patch Changes

1.9.22

Patch Changes

1.9.21

Patch Changes

1.9.20

Patch Changes

1.9.19

Patch Changes

1.9.18

Patch Changes

1.9.17

Patch Changes

1.9.16

Patch Changes

1.9.15

Patch Changes

1.9.14

Patch Changes

1.9.13

Patch Changes

1.9.12

Patch Changes

1.9.11

Patch Changes

1.9.10

Patch Changes

1.9.9

Patch Changes

1.9.8

Patch Changes

1.9.7

Patch Changes

1.9.6

Patch Changes

1.9.5

Patch Changes

1.9.4

Patch Changes

1.9.3

Patch Changes

1.9.2

Patch Changes

1.9.1

Patch Changes

1.9.0

Minor Changes

Patch Changes

1.8.28

Patch Changes

1.8.27

Patch Changes

1.8.26

Patch Changes

1.8.25

Patch Changes

1.8.24

Patch Changes

1.8.23

Patch Changes

1.8.22

Patch Changes

1.8.21

Patch Changes

1.8.20

Patch Changes

1.8.19

Patch Changes

1.8.18

Patch Changes

1.8.17

Patch Changes

1.8.16

Patch Changes

1.8.15

Patch Changes

1.8.14

Patch Changes

1.8.13

Patch Changes

1.8.12

Patch Changes

1.8.11

Patch Changes

1.8.10

Patch Changes

1.8.9

Patch Changes

1.8.8

Patch Changes

1.8.7

Patch Changes

1.8.6

Patch Changes

1.8.5

Patch Changes

1.8.4

Patch Changes

1.8.3

Patch Changes

1.8.2

Patch Changes

1.8.1

Patch Changes

1.8.0

Minor Changes

1.7.6

Patch Changes

1.7.5

Patch Changes

1.7.4

Patch Changes

1.7.3

Patch Changes

1.7.2

Patch Changes

1.7.1

Patch Changes

1.7.0

Minor Changes

Patch Changes

1.6.4

Patch Changes

1.6.3

Patch Changes

1.6.2

Patch Changes

1.6.1

Patch Changes

1.6.0

Minor Changes

Patch Changes

1.5.1

Patch Changes

1.5.0

Minor Changes

Patch Changes

1.4.2

Patch Changes

1.4.1

Patch Changes

1.4.0

Minor Changes

Patch Changes

1.3.10

Patch Changes

1.3.9

Patch Changes

1.3.8

Patch Changes

1.3.7

Patch Changes

1.3.6

Patch Changes

  • #2474 5c89f78 Thanks @oliverb123! - Bumps to depending on latest posthog-cli version, includes critical fix for sourcemap processing bug

1.3.5

Patch Changes

1.3.4

Patch Changes

1.3.3

Patch Changes

1.3.2

Patch Changes

1.3.1

Patch Changes

1.3.0

Minor Changes

1.2.1

Patch Changes

1.2.0

Minor Changes

1.1.2

Patch Changes

1.1.1

Patch Changes

1.1.0

Minor Changes

1.0.2

  • fix: search for posthog-cli binary from the @posthog/nextjs-config package
  • chore: add error messages
  • chore: bump @posthog/cli dependency to 0.3.5
  • feat: take distDir into account when looking for sources

1.0.1

  • Fix build issues on vercel deployment (xz system library missing)

1.0.0

  • generate nextjs configuration for sourcemap generation
  • inject chunk ids into emitted assets
  • automatically upload sourcemaps to PostHog
  • optionally remove sourcemaps from emitted assets after upload