From c52a284013b81a7cc0b1c7a9cd8bc7df0f3aa57a Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Tue, 21 Mar 2023 14:09:46 +0100 Subject: [PATCH] :bug: Transform upload file redirect to a rewrite --- apps/viewer/next.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/viewer/next.config.js b/apps/viewer/next.config.js index 9eb75d8d3..5f950590c 100644 --- a/apps/viewer/next.config.js +++ b/apps/viewer/next.config.js @@ -13,13 +13,12 @@ const nextConfig = { experimental: { outputFileTracingRoot: path.join(__dirname, '../../'), }, - async redirects() { + async rewrites() { return [ { source: '/api/typebots/:typebotId/blocks/:blockId/storage/upload-url', destination: '/api/v1/typebots/:typebotId/blocks/:blockId/storage/upload-url', - permanent: true, }, ] },