diff --git a/pages/index.tsx b/pages/index.tsx index eef65b9..5afe3bc 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,3 +1,4 @@ +import { GetServerSidePropsContext } from "next" import Head from "next/head" import { Button } from "components/Button/Button" import { LP_GRID_ITEMS } from "../lp-items" @@ -57,3 +58,18 @@ export default function Web() { ) } + +export async function getServerSideProps({ req, res }: GetServerSidePropsContext) { + if (req.url?.includes("next-enterprise.vercel.app")) { + return { + redirect: { + destination: "https://blazity.com/open-source/nextjs-enterprise-boilerplate", + permanent: true, + }, + } + } + + return { + props: {}, + } +}