Initial commit: React frontend (SLP Software) + AIDLC workflow docs
Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { createHashHistory, createRouter } from '@tanstack/react-router';
|
||||
import { rootRoute } from './routes/__root';
|
||||
import { indexRoute } from './routes/index';
|
||||
|
||||
/**
|
||||
* Hash-based history (NFR Requirements decision): the confirmed deployment target is a
|
||||
* traditional FTP/static web host, where server-side rewrite rules are not guaranteed.
|
||||
* Hash history works on any static host with zero server configuration.
|
||||
*/
|
||||
const routeTree = rootRoute.addChildren([indexRoute]);
|
||||
|
||||
export const router = createRouter({
|
||||
routeTree,
|
||||
history: createHashHistory(),
|
||||
});
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
interface Register {
|
||||
router: typeof router;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user