File size: 419 Bytes
b2e4883 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | /** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// PatternTalk's audio service runs on a different port (8001); in dev we
// proxy /api/audio/* there to avoid CORS. See feat/audio-service PR.
async rewrites() {
return [
{
source: "/api/audio/:path*",
destination: "http://localhost:8001/:path*",
},
];
},
};
export default nextConfig;
|