2026-03-31 15:45:46 +07:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
|
const nextConfig = {
|
|
|
|
|
output: "standalone",
|
2026-03-31 14:26:48 +07:00
|
|
|
async rewrites() {
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
source: "/api/:path*",
|
2026-04-02 10:33:05 +07:00
|
|
|
destination: `${process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:8001"}/api/:path*`,
|
2026-03-31 14:26:48 +07:00
|
|
|
},
|
2026-04-01 14:58:17 +07:00
|
|
|
{
|
|
|
|
|
source: "/ws/:path*",
|
2026-04-02 10:33:05 +07:00
|
|
|
destination: `${process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:8001"}/ws/:path*`,
|
2026-04-01 14:58:17 +07:00
|
|
|
},
|
2026-03-31 14:26:48 +07:00
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
2026-03-31 15:45:46 +07:00
|
|
|
module.exports = nextConfig;
|