plan/react-rewrite #1
+13
-8
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user