Files
work-club-manager/frontend/next.config.ts

17 lines
358 B
TypeScript
Raw Normal View History

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: 'standalone',
async rewrites() {
const apiUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:5001';
return [
{
source: '/api/:path((?!auth).*)',
destination: `${apiUrl}/api/:path*`,
},
];
},
};
export default nextConfig;