next.config.js 491 B

123456789101112
  1. /** @type {import('next').NextConfig} */
  2. const nextConfig = {
  3. distDir: "build",
  4. typescript: {
  5. // 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.
  6. ignoreBuildErrors: true,
  7. },
  8. // This is needed as in pages router the code for importing types throws error as its outside next js app
  9. transpilePackages: ["../"],
  10. };
  11. module.exports = nextConfig;