Skip to content

Build errors on Vercel, need to ignoreBuildErrors for typescript #1123

@procopim

Description

@procopim

To get vercel build to work from about a 3rd of the way through the course, typescript build errors are needed to be ignored. The issue stems from the shape of State in actions.ts and the one that useActionState expects in edit-form.tsx client component. The former wants errors field to be an obejct when it can only be string | unknown


const nextConfig: NextConfig = {
    typescript: {
    // Allow production build even when TypeScript reports errors
    ignoreBuildErrors: true,
  },
  eslint: {
    // Optional: also skip ESLint during build
    ignoreDuringBuilds: false,
  },
};

export default nextConfig;```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions