---
title: "Discussion on \"Next.js 16, one year on: what broke when I upgraded a real site\" | Hashnode"
description: "Discussion on \"Next.js 16, one year on: what broke when I upgraded a real site\". Turbopack builds broke admin sign-in, the Docker image lost its database driver, and the dev server showed neither. What changed and what to check before you upgrade."
url: "https://hashnode.com/posts/next-js-16-one-year-on-what-broke-when-i-upgraded-a-real-site/6ae1cdf75c0a9b00fd0e0f7a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Next.js 16, one year on: what broke when I upgraded a real site](https://kunjhirapara.hashnode.dev/next-js-16-one-year-on-what-broke-when-i-upgraded-a-real-site?utm_source=hashnode&utm_medium=feed)

Turbopack builds broke admin sign-in, the Docker image lost its database driver, and the dev server showed neither. What changed and what to check before you upgrade.

Oct 28 · 7 min read · kunjhirapara.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#docker](https://hashnode.com/tag/docker)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Kunj Hirapara](https://hashnode.com/@kunjhirapara)

@kunjhirapara · Ahmedabad, Gujarat, India

  
[View profile](https://hashnode.com/@kunjhirapara)

Full-stack engineer in Ahmedabad, India

I build websites and web apps end to end with Next.js, React, Node.js and PostgreSQL, then self-host and run what I ship. I write about the real problems behind that work: upgrades that break production, bugs that only show up on real devices, and the commands that fixed them. More at kunjdeveloper.com.

## Responses 4

Markdown supported · ⌘↵ to post

[Tarun Sharma](https://hashnode.com/@101beardo)

[Oct 29](https://hashnode.com/posts/next-js-16-one-year-on-what-broke-when-i-upgraded-a-real-site/6ae1cdf75c0a9b00fd0e0f7a/comment/6ae3426fa689abae0d3f40a9)

The production-only failure is a good reminder to run next build and next start before upgrading. I hit a similar Turbopack and database driver problem with pg, where bundling it broke long lived connections, and listing pg in serverExternalPackages fixed it. It might be worth trying for the dynamic require case too, if you'd rather not import the driver by hand.

[Kunj Hirapara](https://hashnode.com/@kunjhirapara)

[Oct 29](https://hashnode.com/posts/next-js-16-one-year-on-what-broke-when-i-upgraded-a-real-site/6ae1cdf75c0a9b00fd0e0f7a/comment/6ae3426fa689abae0d3f40a9#reply-6ae3630371d66c3f6dab3d21)

Interesting, will look into that...

[Kunj Hirapara](https://hashnode.com/@kunjhirapara)

[Nov 2](https://hashnode.com/posts/next-js-16-one-year-on-what-broke-when-i-upgraded-a-real-site/6ae1cdf75c0a9b00fd0e0f7a/comment/6ae3426fa689abae0d3f40a9#reply-6ae86c62f55634c6afc9e891)

Finally got around to checking this! Turns out `pg` was already in `serverExternalPackages` when the build dropped it. That prevents it from being bundled, but Next.js still couldn't follow TypeORM's dynamic `require()` when tracing files, so `pg` never made it into the standalone output. Passing `driver: pg` directly is what actually fixed it.

Thanks for the suggestion!

[Tarun Sharma](https://hashnode.com/@101beardo)

[Nov 6](https://hashnode.com/posts/next-js-16-one-year-on-what-broke-when-i-upgraded-a-real-site/6ae1cdf75c0a9b00fd0e0f7a/comment/6ae3426fa689abae0d3f40a9#reply-6aedcd3c9b3c936d51ac9807)

Thanks for checking it and posting the result. Good to know, the dynamic require tracing problem is a separate thing from bundling, so passing the driver in is the right fix there.
