Got the answer from youtube. For anyone with a similr issue, simply add this to your next.config.js
const nextConfig = { eslint: { ignoreDuringBuilds: true, }, };