Skip to content

Commit 50a0262

Browse files
committed
chore: add faulty about route
1 parent 65da112 commit 50a0262

File tree

4 files changed

+100
-2
lines changed

4 files changed

+100
-2
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"buildManifest": {
3+
"serverBundles": {
4+
"nodejs-eyJydW50aW1lIjoibm9kZWpzIn0": {
5+
"id": "nodejs-eyJydW50aW1lIjoibm9kZWpzIn0",
6+
"file": "build/server/nodejs-eyJydW50aW1lIjoibm9kZWpzIn0/index.js",
7+
"config": {
8+
"runtime": "nodejs"
9+
}
10+
}
11+
},
12+
"routeIdToServerBundleId": {
13+
"routes/home": "nodejs-eyJydW50aW1lIjoibm9kZWpzIn0",
14+
"routes/about+test": "nodejs-eyJydW50aW1lIjoibm9kZWpzIn0"
15+
},
16+
"routes": {
17+
"root": {
18+
"path": "",
19+
"id": "root",
20+
"file": "app/root.tsx",
21+
"config": {}
22+
},
23+
"routes/home": {
24+
"id": "routes/home",
25+
"parentId": "root",
26+
"file": "app/routes/home.tsx",
27+
"index": true,
28+
"config": {
29+
"runtime": "nodejs"
30+
}
31+
},
32+
"layouts/example": {
33+
"id": "layouts/example",
34+
"parentId": "root",
35+
"file": "app/layouts/example.tsx",
36+
"config": {}
37+
},
38+
"routes/about+test": {
39+
"id": "routes/about+test",
40+
"parentId": "layouts/example",
41+
"file": "app/routes/about+test.tsx",
42+
"path": "about",
43+
"config": {
44+
"runtime": "nodejs"
45+
}
46+
}
47+
}
48+
},
49+
"reactRouterConfig": {
50+
"appDirectory": "/Users/lifeiscontent/GitHub/sortxyz/react-router-boilerplate/app",
51+
"basename": "/",
52+
"buildDirectory": "/Users/lifeiscontent/GitHub/sortxyz/react-router-boilerplate/build",
53+
"future": {
54+
"unstable_optimizeDeps": false,
55+
"unstable_splitRouteModules": false,
56+
"unstable_viteEnvironmentApi": false
57+
},
58+
"routes": {
59+
"root": {
60+
"path": "",
61+
"id": "root",
62+
"file": "root.tsx"
63+
},
64+
"routes/home": {
65+
"id": "routes/home",
66+
"parentId": "root",
67+
"file": "routes/home.tsx",
68+
"index": true
69+
},
70+
"layouts/example": {
71+
"id": "layouts/example",
72+
"parentId": "root",
73+
"file": "layouts/example.tsx"
74+
},
75+
"routes/about+test": {
76+
"id": "routes/about+test",
77+
"parentId": "layouts/example",
78+
"file": "routes/about+test.tsx",
79+
"path": "about"
80+
}
81+
},
82+
"serverBuildFile": "index.js",
83+
"serverModuleFormat": "esm",
84+
"ssr": true
85+
},
86+
"viteConfig": {
87+
"build": {
88+
"assetsDir": "assets"
89+
}
90+
}
91+
}

app/layouts/example.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { Outlet } from "react-router";
2+
3+
export default function Layout() {
4+
return <Outlet />;
5+
}

app/routes.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import { type RouteConfig, index, route } from "@react-router/dev/routes";
1+
import { type RouteConfig, index, layout, route } from "@react-router/dev/routes";
22

33
export default [
44
index("routes/home.tsx"),
5-
route("about", "routes/about.tsx"),
5+
layout("layouts/example.tsx", [
6+
route("about", "routes/about+test.tsx")
7+
]),
68
] satisfies RouteConfig;
File renamed without changes.

0 commit comments

Comments
 (0)