From 5a6816ae857495a043e933f8070fc52cfa89642c Mon Sep 17 00:00:00 2001 From: Fing0r Date: Tue, 17 Mar 2026 21:56:49 +0700 Subject: [PATCH 1/3] =?UTF-8?q?feat(web):=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20.env.example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/.env.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/.env.example b/apps/web/.env.example index be52c79b..9fa18f47 100644 --- a/apps/web/.env.example +++ b/apps/web/.env.example @@ -1,6 +1,6 @@ -NEXT_PUBLIC_FEATURE_AUTH=boolean -NEXT_PUBLIC_DISABLE_AUTH=boolean NEXT_PUBLIC_FEATURE_PROJECTS=boolean NEXT_PUBLIC_FEATURE_TASKS=boolean NEXT_PUBLIC_FEATURE_SPRINTS=boolean NEXT_PUBLIC_FEATURE_TEAM_SETTINGS=boolean + +NEXT_PUBLIC_API_URL=http://адрес_бекенда:порт(по умолчанию localhost:3000) From 117693dc5dfb03042b348f1fd6094ac8ab58c2c2 Mon Sep 17 00:00:00 2001 From: Fing0r Date: Tue, 17 Mar 2026 21:57:23 +0700 Subject: [PATCH 2/3] =?UTF-8?q?refactor(web):=20=D1=83=D0=B4=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BD=D0=B5=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=B7=D1=83=D0=B5=D1=82=D1=8B=20=D1=84=D0=B8=D1=87=D0=B0=20?= =?UTF-8?q?=D1=84=D0=BB=D0=B0=D0=B3=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/app/(auth)/layout.tsx | 7 +------ apps/web/shared/config/feature-flags.ts | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/web/app/(auth)/layout.tsx b/apps/web/app/(auth)/layout.tsx index 8051227c..ed5de8ac 100644 --- a/apps/web/app/(auth)/layout.tsx +++ b/apps/web/app/(auth)/layout.tsx @@ -1,17 +1,12 @@ import Link from 'next/link' -import { notFound } from 'next/navigation' -import { FEATURES, ROUTES } from '@/shared/config' +import { ROUTES } from '@/shared/config' interface Props { children: React.ReactNode } export default function AuthLayout({ children }: Props) { - if (!FEATURES.AUTH) { - notFound() - } - return (
diff --git a/apps/web/shared/config/feature-flags.ts b/apps/web/shared/config/feature-flags.ts index 707f83fc..6d95ff80 100644 --- a/apps/web/shared/config/feature-flags.ts +++ b/apps/web/shared/config/feature-flags.ts @@ -1,6 +1,4 @@ export const FEATURES = { - AUTH: process.env.NEXT_PUBLIC_FEATURE_AUTH === 'true', - AUTH_DISABLE: process.env.NEXT_PUBLIC_DISABLE_AUTH === 'true', PROJECTS: process.env.NEXT_PUBLIC_FEATURE_PROJECTS === 'true', TASKS: process.env.NEXT_PUBLIC_FEATURE_TASKS === 'true', SPRINTS: process.env.NEXT_PUBLIC_FEATURE_SPRINTS === 'true', From 9b108c5d529f3b02ae20ac64e50ab67daa3bcb4e Mon Sep 17 00:00:00 2001 From: Fing0r Date: Tue, 17 Mar 2026 21:57:52 +0700 Subject: [PATCH 3/3] =?UTF-8?q?chore(repo):=20=D0=BE=D0=B1=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=B8=D0=BB=20globalEnv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- turbo.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbo.json b/turbo.json index 77563396..2668b26d 100644 --- a/turbo.json +++ b/turbo.json @@ -3,7 +3,7 @@ "globalDependencies": ["**/.env.*local"], "globalEnv": [ "DATABASE_URL", - "NEXT_PUBLIC_FEATURE_AUTH", + "NEXT_PUBLIC_API_URL", "NEXT_PUBLIC_FEATURE_PROJECTS", "NEXT_PUBLIC_FEATURE_TASKS", "NEXT_PUBLIC_FEATURE_SPRINTS",