mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-04 05:07:48 +03:00
cd78594590
* test: configure vitest and RTL * test: add test boilerplates * feat(ci): added test-unit frontend --------- Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
20 lines
351 B
TypeScript
20 lines
351 B
TypeScript
import { redirect } from "next/navigation";
|
|
|
|
import Features from "./Features";
|
|
import Hero from "./Hero";
|
|
|
|
const HomePage = (): JSX.Element => {
|
|
if (process.env.NEXT_PUBLIC_ENV === "local") {
|
|
redirect("/upload");
|
|
}
|
|
|
|
return (
|
|
<main data-testid="home-page">
|
|
<Hero />
|
|
<Features />
|
|
</main>
|
|
);
|
|
};
|
|
|
|
export default HomePage;
|