summaryrefslogtreecommitdiffstats
path: root/examples/with-nextjs/next.config.js
diff options
context:
space:
mode:
authorkj_sh6042026-03-15 16:19:35 -0400
committerkj_sh6042026-03-15 16:19:35 -0400
commit225db4a7805befe009fe055fc2ef5daedd6c04f9 (patch)
treea5b0d073daabaadceb2f5c1b18640d785b5a9c71 /examples/with-nextjs/next.config.js
parent8ff10d2bf233608b027f8503cb9c7100c9ee3f16 (diff)
refactor: examples/
Diffstat (limited to 'examples/with-nextjs/next.config.js')
-rw-r--r--examples/with-nextjs/next.config.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/with-nextjs/next.config.js b/examples/with-nextjs/next.config.js
new file mode 100644
index 0000000..701438e
--- /dev/null
+++ b/examples/with-nextjs/next.config.js
@@ -0,0 +1,12 @@
+/** @type {import('next').NextConfig} */
+const nextConfig = {
+ distDir: "build",
+ typescript: {
+ // The ts config doesn't work with `jsx: preserve" and if updated to `react-jsx` it gets ovewritten by next js throwing ts errors hence I am ignoring build errors until this is fixed.
+ ignoreBuildErrors: true,
+ },
+ // This is needed as in pages router the code for importing types throws error as its outside next js app
+ transpilePackages: ["../"],
+};
+
+module.exports = nextConfig;