lynxkite / web /next.config.ts
darabos's picture
Start switching to React.
7d3eca5
raw
history blame
444 Bytes
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;