Skip to content

Commit 422d61d

Browse files
mschristensenclaude
andcommitted
demo: use-client-transport — upgrade to Next.js 16 with Turbopack
Bump next and eslint-config-next from ^15 to ^16. Remove the webpack extensionAlias config since Turbopack handles .js → .ts resolution natively. Drop the .js suffix from the local tools import. The tsconfig.json changes are auto-generated by Next.js 16. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 479b214 commit 422d61d

File tree

5 files changed

+599
-141
lines changed

5 files changed

+599
-141
lines changed

demo/vercel/react/use-client-transport/next.config.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@ import type { NextConfig } from 'next';
22

33
const nextConfig: NextConfig = {
44
serverExternalPackages: ['jsonwebtoken', 'ably'],
5-
webpack: (config) => {
6-
// @ably/ai-transport source uses .js extensions in imports (standard TS ESM convention).
7-
// When the library is linked as source (file:../../), webpack needs to resolve
8-
// .js imports to .ts files.
9-
config.resolve.extensionAlias = {
10-
'.js': ['.ts', '.tsx', '.js'],
11-
};
12-
return config;
13-
},
145
};
156

167
export default nextConfig;

0 commit comments

Comments
 (0)