forked from cardosofelipe/fast-next-template
- Introduced `isAPIErrorArray` type guard to improve error handling in authentication forms, replacing type assertions for better runtime safety. - Refactored error handling logic across `RegisterForm`, `LoginForm`, `PasswordResetRequestForm`, and `PasswordResetConfirmForm` for unexpected error fallbacks. - Updated `next.config.ts` and `.eslintrc.json` to exclude generated API client files from linting and align configuration with latest project structure. - Added comprehensive documentation on Phase 2 completion in `IMPLEMENTATION_PLAN.md`.
21 lines
505 B
TypeScript
Executable File
21 lines
505 B
TypeScript
Executable File
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: 'standalone',
|
|
// Ensure we can connect to the backend in Docker
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: 'http://backend:8000/:path*',
|
|
},
|
|
];
|
|
},
|
|
// Exclude generated API client from ESLint
|
|
eslint: {
|
|
ignoreDuringBuilds: false,
|
|
dirs: ['src', 'tests'],
|
|
},
|
|
};
|
|
|
|
export default nextConfig; |