Skip to content

Commit 9a40302

Browse files
committed
NextJS build uses tsconfig.build.json file now
1 parent d8041ed commit 9a40302

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

next-client/next.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
/** @type {import('next').NextConfig} */
44
const nextConfig = {
55
/* config options here */
6+
typescript: {
7+
tsconfigPath: "tsconfig.build.json",
8+
},
69
};
710

811
module.exports = nextConfig;

next-client/tsconfig.build.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"exclude": ["**/*.test.*", "**/*.stories.tsx"]
4+
}

0 commit comments

Comments
 (0)