From 5cf76925a58bf9626dae84883b535ef268a86cf9 Mon Sep 17 00:00:00 2001 From: Rajnish Dargan Date: Fri, 13 Dec 2024 13:35:18 +0530 Subject: [PATCH] PS-2796 fix: Handling get-status API in admin app ZIP file upload --- next.config.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index ccbb45b..e5d6b34 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -95,6 +95,10 @@ const nextConfig = { source: "/action/:path*", // Match any other routes starting with /action/ destination: `${process.env.WORKSPACE_BASE_URL}/api/proxy?path=/action/:path*`, // Forward them to proxy.js }, + { + source: "/api/content-upload/get-status/:path*", // Match //api/content-upload/get-status/ routes + destination: `${process.env.WORKSPACE_BASE_URL}/api/content-upload/get-status/:path*`, // Forward to workspace get-status API + }, { source: "/api/:path*", // Match /api/ routes destination: `${process.env.WORKSPACE_BASE_URL}/api/proxy?path=/api/:path*`, // Forward them to proxy.js