add turborepo
This commit is contained in:
17
apps/insights.saladeaula.digital/app/routes/home.tsx
Normal file
17
apps/insights.saladeaula.digital/app/routes/home.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { Route } from "./+types/home";
|
||||
import { Welcome } from "../welcome/welcome";
|
||||
|
||||
export function meta({}: Route.MetaArgs) {
|
||||
return [
|
||||
{ title: "New React Router App" },
|
||||
{ name: "description", content: "Welcome to React Router!" },
|
||||
];
|
||||
}
|
||||
|
||||
export function loader({ context }: Route.LoaderArgs) {
|
||||
return { message: context.cloudflare.env.VALUE_FROM_CLOUDFLARE };
|
||||
}
|
||||
|
||||
export default function Home({ loaderData }: Route.ComponentProps) {
|
||||
return <Welcome message={loaderData.message} />;
|
||||
}
|
||||
Reference in New Issue
Block a user