This commit is contained in:
2026-02-06 02:55:46 +03:00
parent bbb453826b
commit 9e5e9ddca4
5 changed files with 95 additions and 2 deletions

View File

@ -3,6 +3,11 @@ const nextConfig = {
reactStrictMode: true,
eslint: { ignoreDuringBuilds: true },
transpilePackages: ['@coursecraft/shared'],
// Проксируем /api на бэкенд — в браузере запросы идут на тот же хост, без localhost
async rewrites() {
const apiUrl = process.env.API_URL || 'http://127.0.0.1:3125';
return [{ source: '/api/:path*', destination: `${apiUrl}/api/:path*` }];
},
images: {
remotePatterns: [
{