- Add complete Next.js 16 frontend with TypeScript and Tailwind CSS - Implement API proxy route for CORS-free backend communication - Create UserContext for global authentication state management - Add authentication flow with JWT tokens - Implement real data integration for posts and employees pages - Add dynamic user avatars (with fallback to initials) - Update API types to match backend Employee serializer - Remove all hardcoded mock data - Add route protection with automatic redirect to /login - Configure Docker orchestration for full-stack setup
17 lines
559 B
TypeScript
17 lines
559 B
TypeScript
import type { NextConfig } from "next";
|
||
|
||
const nextConfig: NextConfig = {
|
||
// Отключаем автоматический редирект 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,
|
||
},
|
||
};
|
||
|
||
export default nextConfig;
|