plan/react-rewrite #1

Merged
gnezim merged 138 commits from plan/react-rewrite into main 2026-04-15 12:21:16 +03:00
Showing only changes of commit 8a5279745c - Show all commits
+13 -8
View File
@@ -1,10 +1,15 @@
// Placeholder route for 1A-2. Replaced by 1F-layout with the real root layout
// (src/routes/layout.tsx + src/routes/[lang]/layout.tsx + error routes + smoke route).
import { redirect } from "@modern-js/runtime/router";
const DEFAULT_LANG = "ru";
/**
* Root `/` route -- redirects to `/{defaultLang}/onlineboard` to match
* the Angular app's default routing behavior (see `app-routing.module.ts`).
*/
export const loader = () => redirect(`/${DEFAULT_LANG}/onlineboard`);
export default function Home() {
return (
<main>
<h1>Aeroflot Flights React skeleton</h1>
<p>This page is a 1A-2 placeholder. Real routes land in 1F-layout.</p>
</main>
);
// The loader redirect fires before render, so this component body
// should never be reached. Keep it as a no-op fallback.
return null;
}