Files
LMS/frontend/next.config.js
T

19 lines
453 B
JavaScript
Raw Normal View History

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