next.config.ts 496 B

123456789101112131415
  1. import type { NextConfig } from 'next'
  2. console.log('SOL_ENDPOINT', process.env.SOL_ENDPOINT)
  3. const nextConfig: NextConfig = {
  4. output: 'standalone',
  5. // 忽略构建时的类型错误(因为 lib 目录是第三方代码,可能有类型问题)
  6. typescript: {
  7. // 设置为 true 会忽略所有类型错误,包括项目代码
  8. // 如果只想忽略 lib 目录,可以保持 false,但需要在 tsconfig.json 中正确排除
  9. ignoreBuildErrors: true,
  10. },
  11. }
  12. export default nextConfig