From b96e47746e6fea75790e1322e6a1f7d877f1b26c Mon Sep 17 00:00:00 2001 From: Li Xin Date: Sat, 19 Apr 2025 22:04:53 +0800 Subject: [PATCH] chore: add rewrite rules --- web/next.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/next.config.js b/web/next.config.js index 97c7237..1db556d 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -8,6 +8,13 @@ import "./src/env.js"; /** @type {import("next").NextConfig} */ -const config = {}; +const config = { + rewrites: async () => [ + { + source: "/api/podcast/:path*", + destination: "http://localhost:8000/api/podcast/:path*", + }, + ], +}; export default config;