Unverified Commit 4a8eeab2 authored by Yiming Cao's avatar Yiming Cao Committed by GitHub

Add "@zenstackhq/runtime" to server-external-packages.json (#54829)

### What?

[ZenStack](https://github.com/zenstackhq/zenstack) is a toolkit built
above Prisma ORM for adding access control and other features. This
change adds one of its packages "@zenstackhq/runtime" to the default
list of "serverComponentsExternalPackages".

### Why?

The package is frequently used in Next.js route handlers and results in
false-positive errors with Next.js's bundler (likely caused by
dynamically `require` modules).

### How?

Add the package to the default external packages list.

---------
Co-authored-by: 's avatarTim Neutkens <tim@timneutkens.nl>
parent 19aee3ff
...@@ -39,6 +39,7 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne ...@@ -39,6 +39,7 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne
- `@statsig/statsig-node-core` - `@statsig/statsig-node-core`
- `@swc/core` - `@swc/core`
- `@xenova/transformers` - `@xenova/transformers`
- `@zenstackhq/runtime`
- `argon2` - `argon2`
- `autoprefixer` - `autoprefixer`
- `aws-crt` - `aws-crt`
......
...@@ -39,6 +39,7 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne ...@@ -39,6 +39,7 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne
- `@statsig/statsig-node-core` - `@statsig/statsig-node-core`
- `@swc/core` - `@swc/core`
- `@xenova/transformers` - `@xenova/transformers`
- `@zenstackhq/runtime`
- `argon2` - `argon2`
- `autoprefixer` - `autoprefixer`
- `aws-crt` - `aws-crt`
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
// Native Node.js addons // Native Node.js addons
"@swc/core", "@swc/core",
"@xenova/transformers", "@xenova/transformers",
// Builds on top of @prisma/client so dynamically loads the version.
"@zenstackhq/runtime",
"argon2", "argon2",
"autoprefixer", "autoprefixer",
"aws-crt", "aws-crt",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment