feat: redirect prod homepage to blazity domain
This commit is contained in:
parent
efb4c52dce
commit
7d8e451c2a
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ export default function Web() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getServerSideProps({ req, res }: GetServerSidePropsContext) {
|
export async function getServerSideProps({ req, res }: GetServerSidePropsContext) {
|
||||||
if (req.url?.includes("next-enterprise.vercel.app")) {
|
if (req.headers?.host?.includes("next-enterprise.vercel.app")) {
|
||||||
return {
|
return {
|
||||||
redirect: {
|
redirect: {
|
||||||
destination: "https://blazity.com/open-source/nextjs-enterprise-boilerplate",
|
destination: "https://blazity.com/open-source/nextjs-enterprise-boilerplate",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue