mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-20 11:22:55 -05:00
fix: legacy survey redirect links from formbricks.com (#2491)
This commit is contained in:
5
apps/formbricks-com/app/[surveyId]/route.ts
Normal file
5
apps/formbricks-com/app/[surveyId]/route.ts
Normal 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);
|
||||
}
|
||||
@@ -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" })(
|
||||
|
||||
Reference in New Issue
Block a user