We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a04a9c commit 84fdea2Copy full SHA for 84fdea2
1 file changed
frontend/next.config.ts
@@ -1,7 +1,25 @@
1
import type { NextConfig } from "next";
2
3
const nextConfig: NextConfig = {
4
- /* config options here */
+ reactStrictMode: true,
5
+ swcMinify: true,
6
+ output: 'export',
7
+ images: {
8
+ unoptimized: true,
9
+ },
10
+ env: {
11
+ NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8000',
12
13
+ rewrites: async () => {
14
+ return {
15
+ beforeFiles: [
16
+ {
17
+ source: '/api/:path*',
18
+ destination: `${process.env.NEXT_PUBLIC_API_URL}/:path*`,
19
20
+ ],
21
+ };
22
23
};
24
25
export default nextConfig;
0 commit comments