fix: legacy survey redirect links from formbricks.com (#2491)

This commit is contained in:
Matti Nannt
2024-04-19 14:49:47 +02:00
committed by GitHub
parent e6ee81a683
commit c6f9a6cdfc
2 changed files with 5 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
export async function GET(_: Request, { params }: { params: { surveyId: string } }) {
const surveyId = params.surveyId;
// redirect to Formbricks Cloud
return Response.redirect(`https://app.formbricks.com/s/${surveyId}`, 301);
}

View File

@@ -212,18 +212,6 @@ const nextConfig = {
},
];
},
async rewrites() {
return {
fallback: [
// These rewrites are checked after both pages/public files
// and dynamic routes are checked
{
source: "/:path*",
destination: `https://app.formbricks.com/s/:path*`,
},
],
};
},
};
export default withPlausibleProxy({ customDomain: "https://plausible.formbricks.com" })(