mirror of
https://github.com/StepanovPlaton/torrent_frontend.git
synced 2026-04-03 20:30:48 +04:00
25 lines
400 B
JavaScript
25 lines
400 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
async rewrites() {
|
|
return process.env.NODE_ENV == "development"
|
|
? [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: "http://127.0.0.1:8000/:path*",
|
|
},
|
|
]
|
|
: [];
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "http",
|
|
hostname: "127.0.0.1",
|
|
port: "8000",
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|