Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ const nextConfig = {
});
return config;
},
async redirects() {
return [
{
source: '/',
destination: '/hackrplay/2022/home',
permanent: true,
},
]
},

}

module.exports = nextConfig
14 changes: 1 addition & 13 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
import { useEffect } from "react";
import { useRouter } from "next/router";
import Layout from "@/components/Layout";

export default function Home() {
const router = useRouter();
useEffect(() => {
router.push("events/23/twoplaysamonth");
}, []);

return <Layout title='ReactPlay : #2Plays-A-Month' metainfo={{
name: "twoplaysamonth",
display: "#2PlaysAMonth",
description: "#2PlaysAMonth is an event by ReactPlay for the ReactJs community to learn, build, share in public. Join us.",
keywords: "ReactPlay, #2PlaysAMonth, ReactJS",
}}></Layout>;
return <Layout title="ReactPlay presents HACK-R-PLAY"></Layout>;
}