mirror of
https://git.victorphan.net/basketballcantho/ten-project.git
synced 2026-08-05 11:53:10 +07:00
19 lines
453 B
JavaScript
19 lines
453 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: "standalone",
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: `${process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:8001"}/api/:path*`,
|
|
},
|
|
{
|
|
source: "/ws/:path*",
|
|
destination: `${process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:8001"}/ws/:path*`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|