From 86bca5cdc7822727695e93436816cafffa073ae0 Mon Sep 17 00:00:00 2001 From: Marcos Soledade Date: Fri, 15 Mar 2024 16:44:16 -0300 Subject: [PATCH] Ignores linting on build --- next.config.js | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/next.config.js b/next.config.js index 32b34a8..c8a6ab9 100644 --- a/next.config.js +++ b/next.config.js @@ -4,18 +4,23 @@ const nextConfig = { async redirects() { return [ { - source: '/', - destination: '/campaigns', + source: "/", + destination: "/campaigns", basePath: false, - permanent: false - } - ] + permanent: false, + }, + ]; }, i18n: { - locales: ['en-US', 'es'], - defaultLocale: 'en-US', + locales: ["en-US", "es"], + defaultLocale: "en-US", // localePath: resolve('./public/locales'), - } -} + }, + eslint: { + // Warning: This allows production builds to successfully complete even if + // your project has ESLint errors. + ignoreDuringBuilds: true, + }, +}; -module.exports = nextConfig +module.exports = nextConfig;