From 1ca63b807f21cba0b06941a3e4fefb470513b9d6 Mon Sep 17 00:00:00 2001 From: Ismaaa <22240843+Ismaaa@users.noreply.github.com> Date: Wed, 6 Nov 2024 12:12:55 +0000 Subject: [PATCH] Allow emergency deployments --- next.config.mjs | 14 ++++++++++++++ package.json | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/next.config.mjs b/next.config.mjs index b3a76a7b..751b8963 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,9 +1,23 @@ /** @type {import('next').NextConfig} */ + +/** + * We're ignoring ESLint and TypeScript errors during builds to allow deployments in emergency situations. + * These issues are still caught and reported by our separate code quality GitHub Action, + * but won't block deployment if urgent changes are needed. + * + * @see .github/workflows/code-quality-checks.yml for the quality checks implementation + */ const nextConfig = { reactStrictMode: true, experimental: { serverActions: true, }, + eslint: { + ignoreDuringBuilds: true + }, + typescript: { + ignoreBuildErrors: true + } }; export default nextConfig; diff --git a/package.json b/package.json index 74a0a96d..219112dc 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev", - "build": "CI=false next build", + "build": "next build", "start": "next start", "lint": "next lint", "prettier:check": "prettier . --check",