quivr/frontend/app/(home)/page.tsx
Mamadou DICKO cd78594590
Config frontend tests (#408)
* test: configure vitest and RTL

* test: add test boilerplates

* feat(ci): added test-unit frontend

---------

Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2023-06-29 13:18:30 +02:00

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;