Spaces:
Paused
Paused
Update frontend/next.config.js
Browse files- frontend/next.config.js +15 -0
frontend/next.config.js
CHANGED
|
@@ -29,3 +29,18 @@ const nextConfig = {
|
|
| 29 |
|
| 30 |
module.exports = nextConfig
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
module.exports = nextConfig
|
| 31 |
|
| 32 |
+
/** @type {import('next').NextConfig} */
|
| 33 |
+
const nextConfig = {
|
| 34 |
+
async rewrites() {
|
| 35 |
+
return [
|
| 36 |
+
{
|
| 37 |
+
source: '/api/:path*',
|
| 38 |
+
destination: 'http://localhost:8000/api/:path*',
|
| 39 |
+
},
|
| 40 |
+
];
|
| 41 |
+
},
|
| 42 |
+
};
|
| 43 |
+
|
| 44 |
+
module.exports = nextConfig;
|
| 45 |
+
|
| 46 |
+
|