Skip to content

Commit d4868d9

Browse files
committed
fix broken migration
1 parent d5ef83f commit d4868d9

14 files changed

Lines changed: 939 additions & 185 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,3 +294,4 @@ __pycache__/
294294
*.btm.cs
295295
*.odx.cs
296296
*.xsd.cs
297+
mise.toml

nextjs-app/next.config.ts

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,9 @@ import type { NextConfig } from 'next';
33
const isProd = process.env.NODE_ENV === 'production';
44

55
const nextConfig: NextConfig = {
6-
// Rewrite API requests to C# backend during development
7-
async rewrites() {
8-
if (isProd) return [];
9-
10-
return [
11-
{
12-
source: '/api/:path*',
13-
destination: 'https://localhost:5001/api/:path*'
14-
},
15-
{
16-
source: '/auth/:path*',
17-
destination: 'https://localhost:5001/auth/:path*'
18-
},
19-
{
20-
source: '/users/:id/avatar',
21-
destination: 'https://localhost:5001/users/:id/avatar'
22-
},
23-
{
24-
source: '/login/:path*',
25-
destination: 'https://localhost:5001/login/:path*'
26-
}
27-
];
28-
},
29-
306
// Production build output to C# wwwroot
317
output: isProd ? 'export' : undefined,
32-
distDir: isProd ? '../TechStacks/wwwroot' : '.next',
8+
distDir: '.next',
339

3410
// Image optimization configuration
3511
images: {
@@ -44,9 +20,9 @@ const nextConfig: NextConfig = {
4420
ignoreBuildErrors: false
4521
},
4622

47-
// ESLint configuration
48-
eslint: {
49-
ignoreDuringBuilds: false
23+
// Experimental features for middleware
24+
experimental: {
25+
// Enable middleware to handle API proxying
5026
}
5127
};
5228

0 commit comments

Comments
 (0)