Skip to content

Commit 1d0067e

Browse files
authored
Merge pull request #17 from ably-labs/fix-nextjs-turbopack
Fix for using Next.js Turbopack option
2 parents 70c085a + c5c7965 commit 1d0067e

File tree

3 files changed

+450
-152
lines changed

3 files changed

+450
-152
lines changed

next.config.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ const nextConfig = {
99
dangerouslyAllowSVG: true,
1010
domains: ['static.ably.dev'],
1111
},
12-
webpack: (config) => {
13-
config.externals.push({
14-
'utf-8-validate': 'commonjs utf-8-validate',
15-
'bufferutil': 'commonjs bufferutil',
16-
})
17-
return config
18-
},
19-
}
12+
experimental: {
13+
serverComponentsExternalPackages: ['ably'],
14+
},
15+
};
2016

21-
module.exports = nextConfig
17+
module.exports = nextConfig;

0 commit comments

Comments
 (0)