Skip to content

Commit 1fc24cc

Browse files
committed
fixup! fix(test): exclude @napi-rs/keyring from bundlers in e2e tests (#20605)
1 parent 3e7e104 commit 1fc24cc

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/next.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import type { NextConfig } from 'next';
44
const nextConfig: NextConfig = {
55
cacheComponents: true,
66
serverExternalPackages: ['@napi-rs/keyring'],
7+
webpack: config => {
8+
config.externals.push('@napi-rs/keyring');
9+
return config;
10+
},
711
};
812

913
export default withSentryConfig(nextConfig, {

dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/next.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import type { NextConfig } from 'next';
33

44
const nextConfig: NextConfig = {
55
serverExternalPackages: ['@napi-rs/keyring'],
6+
webpack: config => {
7+
config.externals.push('@napi-rs/keyring');
8+
return config;
9+
},
610
};
711

812
export default withSentryConfig(nextConfig, {

0 commit comments

Comments
 (0)