🐛 Transform upload file redirect to a rewrite
This commit is contained in:
@@ -13,13 +13,12 @@ const nextConfig = {
|
|||||||
experimental: {
|
experimental: {
|
||||||
outputFileTracingRoot: path.join(__dirname, '../../'),
|
outputFileTracingRoot: path.join(__dirname, '../../'),
|
||||||
},
|
},
|
||||||
async redirects() {
|
async rewrites() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
source: '/api/typebots/:typebotId/blocks/:blockId/storage/upload-url',
|
source: '/api/typebots/:typebotId/blocks/:blockId/storage/upload-url',
|
||||||
destination:
|
destination:
|
||||||
'/api/v1/typebots/:typebotId/blocks/:blockId/storage/upload-url',
|
'/api/v1/typebots/:typebotId/blocks/:blockId/storage/upload-url',
|
||||||
permanent: true,
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user