---
title: "Comment by Tarun Sharma on \"Next.js 16, one year on: what broke when I upgraded a real site\" | Hashnode"
description: "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,"
url: "https://hashnode.com/posts/next-js-16-one-year-on-what-broke-when-i-upgraded-a-real-site/6ae1cdf75c0a9b00fd0e0f7a/comment/6ae3426fa689abae0d3f40a9"
---

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

Comment [Next.js 16, one year on: what broke when I upgraded a real site](https://hashnode.com/posts/next-js-16-one-year-on-what-broke-when-i-upgraded-a-real-site/6ae1cdf75c0a9b00fd0e0f7a)

[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.
