Skip to content

Commit 954d40b

Browse files
add Statsig Node Core package to Server External Packages (#84157)
### What? Statsig is a popular AB Testing/ Feature Flagging solution to use in concert with Next.js. Today, their newest Server SDK doesn't play nicely with Next as its build around a Rust library, which doesn't play nice with webpack and causes build issues. ### Why? This'll remove a step for Statsig/Next developers having to troubleshoot and add @statsig/statsig-node-core to serverExternalPackages themselves. ### How? Added to the list published here: https://nextjs.org/docs/app/api-reference/config/next-config-js/serverExternalPackages
1 parent 600238f commit 954d40b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

docs/01-app/03-api-reference/05-config/01-next-config-js/serverExternalPackages.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne
3535
- `@sentry/profiling-node`
3636
- `@sparticuz/chromium`
3737
- `@sparticuz/chromium-min`
38+
- `@statsig/statsig-node-core`
3839
- `@swc/core`
3940
- `@xenova/transformers`
4041
- `argon2`

docs/02-pages/04-api-reference/04-config/01-next-config-js/serverExternalPackages.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne
3535
- `@sentry/profiling-node`
3636
- `@sparticuz/chromium`
3737
- `@sparticuz/chromium-min`
38+
- `@statsig/statsig-node-core`
3839
- `@swc/core`
3940
- `@xenova/transformers`
4041
- `argon2`

packages/next/src/lib/server-external-packages.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@sentry/profiling-node",
1717
"@sparticuz/chromium",
1818
"@sparticuz/chromium-min",
19+
"@statsig/statsig-node-core",
1920
"@swc/core",
2021
"@xenova/transformers",
2122
"argon2",

0 commit comments

Comments
 (0)