Corp/frontend/next.config.ts
igor_nadein 6b1c862a4b Refactor: Calendar architecture cleanup and optimization
- Extract CalendarCard to separate component (467 lines)
- Create calendarService for API and caching (156 lines)
- Add useCalendarEvents hook (96 lines)
- Create CalendarSidebar wrapper component (29 lines)
- Reduce AppShell.tsx from 1277 to 634 lines (-50%)
- Implement proper separation of concerns
- Move global cache to service layer
- Improve code maintainability and testability
2026-02-25 09:24:28 +03:00

28 lines
971 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Отключаем React Strict Mode для production-like поведения в dev
reactStrictMode: false,
// Указываем корень проекта для Turbopack, чтобы не путался с lockfile в корне монорепо
turbopack: {
root: __dirname,
},
// Отключаем автоматический редирект trailing slash
// Django требует слэш в конце URL, а Next.js по умолчанию его убирает
skipTrailingSlashRedirect: true,
// Environment variables
env: {
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL,
NEXT_PUBLIC_WS_URL: process.env.NEXT_PUBLIC_WS_URL,
NEXT_PUBLIC_BACKEND_URL: process.env.NEXT_PUBLIC_BACKEND_URL,
},
// Полностью отключаем Next.js Dev Tools UI (кружок "N")
devIndicators: false,
};
export default nextConfig;