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) 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', 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",