2
0

🐛 Transform upload file redirect to a rewrite

This commit is contained in:
Baptiste Arnaud
2023-03-21 14:09:46 +01:00
parent 90cb0750b8
commit c52a284013

View File

@ -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,
},
]
},