Skip to content
Myr

router.tsx

This file

Path

apps/web/src/router.tsx

31 lines · 821 bytes · TypeScript

Last changed by

Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 1–2why, one step back
1import { createRouter } from "@tanstack/react-router";
2

Put every page in the Control room shell: rail, bars, workspace, router links, keys, head, error and pending statesoscabrielbefore adoptionddbd51e

lines 3–7why, one step back
3import {
4 NotFoundPage,5 PendingPage,6 RouteError,7} from "./features/shared/pending.tsx";

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 8why, one step back
8import { routeTree } from "./routeTree.gen.ts";

Merge build/1400-w14-foundation into mainoscabrielbefore adoption47dd2f8

line 9why, one step back
9import { addressRewrite } from "./server/addresses.ts";

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 10–12why, one step back
10
11export const getRouter = () =>12 createRouter({

Put every page in the Control room shell: rail, bars, workspace, router links, keys, head, error and pending statesoscabrielbefore adoptionddbd51e

lines 13–20why, one step back
13 defaultErrorComponent: RouteError,
14 defaultNotFoundComponent: NotFoundPage,15 defaultPendingComponent: PendingPage,16 defaultPendingMs: 300,17 defaultPreload: "intent",18 defaultPreloadDelay: 50,19 defaultPreloadStaleTime: 30_000,20 defaultStaleTime: 10_000,

Merge build/1400-w14-foundation into mainoscabrielbefore adoption47dd2f8

line 21why, one step back
21 rewrite: addressRewrite,

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 22–23why, one step back
22 routeTree,
23 scrollRestoration: true,

Put every page in the Control room shell: rail, bars, workspace, router links, keys, head, error and pending statesoscabrielbefore adoptionddbd51e

line 24why, one step back
24 scrollToTopSelectors: ["#main", "#facts"],

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 25–31why, one step back
25 });
2627declare module "@tanstack/react-router" {28 interface Register {29 router: ReturnType<typeof getRouter>;30 }31}