18 lines
335 B
JavaScript
18 lines
335 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: "http://localhost:8000/api/:path*",
|
|
},
|
|
{
|
|
source: "/ws",
|
|
destination: "http://localhost:8000/ws",
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|