AbuAlone09 commited on
Commit
47f2ebb
·
verified ·
1 Parent(s): 5678d99

Update frontend/next.config.js

Browse files
Files changed (1) hide show
  1. 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
+