Skip to content

Commit cfedf50

Browse files
committed
changes for a testing out error-tracking
1 parent 7ec5256 commit cfedf50

6 files changed

Lines changed: 3808 additions & 5 deletions

File tree

next-js/next.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const nextConfig = {
3+
// Linked `file:` packages from the monorepo need to be compiled with the app
4+
// (avoids broken re-exports / stale subpath bundles for @growthbook/growthbook).
5+
transpilePackages: ["@growthbook/growthbook", "@growthbook/growthbook-react"],
6+
};
37

48
export default nextConfig;

next-js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@growthbook/growthbook": "^1.6.5",
13-
"@growthbook/growthbook-react": "^1.6.5",
12+
"@growthbook/growthbook": "file:../../growthbook/packages/sdk-js",
13+
"@growthbook/growthbook-react": "file:../../growthbook/packages/sdk-react",
1414
"js-cookie": "^3.0.5",
1515
"next": "14.2.2",
1616
"react": "^18",

0 commit comments

Comments
 (0)