mirror of
https://github.com/StepanovPlaton/torrent_frontend.git
synced 2026-04-03 12:20:48 +04:00
24 lines
466 B
JavaScript
24 lines
466 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: `${process.env.BACKEND_PROTOCOL}://`+
|
|
`${process.env.BACKEND_DOMAIN}:${process.env.BACKEND_PORT}/:path*`,
|
|
}
|
|
]
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: process.env.BASE_PROTOCOL,
|
|
hostname: process.env.BASE_DOMAIN,
|
|
port: process.env.BASE_PORT,
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|