Spaces:
Running
Running
import type { NextConfig } from "next"; | |
import Icons from 'unplugin-icons/webpack' | |
const nextConfig: NextConfig = { | |
webpack(config) { | |
config.plugins.push( | |
Icons({ | |
compiler: 'jsx', | |
jsx: 'react', | |
}) | |
); | |
return config; | |
}, | |
async rewrites() { | |
return [ | |
{ | |
source: '/api/:path*', | |
destination: 'http://127.0.0.1:8000/api/:path*', | |
}, | |
] | |
}, | |
}; | |
export default nextConfig; | |