Skip to content

Commit

Permalink
Added redirect to next config
Browse files Browse the repository at this point in the history
  • Loading branch information
atrincas committed Nov 13, 2024
1 parent 1115ad6 commit 7e8a5d4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
10 changes: 10 additions & 0 deletions client/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ const nextConfig = {
config.ignoreWarnings = warning;
return config;
},
async redirects() {
// Temporary redirect to explore page
return [
{
source: '/',
destination: '/explore',
permanent: true,
},
]
},
};

export default nextConfig;
14 changes: 6 additions & 8 deletions client/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { redirect } from "next/navigation";
import ComingSoon from "@/containers/coming-soon";

export default function Home() {
// Temporary redirect to explore page
redirect("/explore");
// return (
// <main className="min-h-screen bg-blue-900">
// <ComingSoon />
// </main>
// );
return (
<main className="min-h-screen bg-blue-900">
<ComingSoon />
</main>
);
}

0 comments on commit 7e8a5d4

Please sign in to comment.