Skip to content

Commit de91c9d

Browse files
Merge branch 'main' into docs/restructure-typescript-event-handling
2 parents 300ec6a + fec1d6b commit de91c9d

13 files changed

Lines changed: 21 additions & 18 deletions

File tree

src/routes/solid-start/v2/(0)building-your-application/(0)routing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ There are two route shapes:
2727
- Files with a default export become UI routes.
2828
- Files that export HTTP method names such as `GET` or `POST` become API routes.
2929

30-
You can read more about handler exports in [API routes](/v2/solid-start/building-your-application/api-routes).
30+
You can read more about handler exports in [API routes](/solid-start/v2/building-your-application/api-routes).
3131

3232
## Basic filename mapping
3333

src/routes/solid-start/v2/(0)building-your-application/(1)api-routes.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ description: >-
1717

1818
Use an API route when you need a route that returns data or handles incoming HTTP requests instead of rendering page UI.
1919

20-
A file becomes an API route when it exports one or more HTTP method names such as [`GET`](/v2/solid-start/reference/server/get), `POST`, `PATCH`, or `DELETE`.
20+
A file becomes an API route when it exports one or more HTTP method names such as [`GET`](/solid-start/v2/reference/server/get), `POST`, `PATCH`, or `DELETE`.
2121

2222
## Create an API route
2323

@@ -87,4 +87,4 @@ API routes are a good fit when you need:
8787
- auth callback handlers
8888
- routes that return non-HTML responses
8989

90-
If the data is only needed by your route UI, prefer [Data fetching](/v2/solid-start/building-your-application/data-fetching) or [Data mutation](/v2/solid-start/building-your-application/data-mutation) before introducing a separate API boundary.
90+
If the data is only needed by your route UI, prefer [Data fetching](/solid-start/v2/building-your-application/data-fetching) or [Data mutation](/solid-start/v2/building-your-application/data-mutation) before introducing a separate API boundary.

src/routes/solid-start/v2/(0)building-your-application/(4)data-mutation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description: >-
1616
---
1717

1818
Mutations run through Solid Router's [`action`](/solid-router/reference/data-apis/action) API.
19-
When a mutation must run on the server, place the [`"use server"`](/v2/solid-start/reference/server/use-server) directive inside the action body.
19+
When a mutation must run on the server, place the [`"use server"`](/solid-start/v2/reference/server/use-server) directive inside the action body.
2020

2121
## Handle form submissions with actions
2222

@@ -109,4 +109,4 @@ export default function ProjectPage(props: { params: { id: string } }) {
109109
When a mutation changes data that is also loaded by a route `query`, keep the read path and write path close together.
110110
That makes it easier to reason about revalidation behavior through the Solid Router data APIs.
111111

112-
Read this page together with [Data fetching](/v2/solid-start/building-your-application/data-fetching).
112+
Read this page together with [Data fetching](/solid-start/v2/building-your-application/data-fetching).

src/routes/solid-start/v2/(0)index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ The core model carries over from v1:
3939

4040
Configuration moved from `app.config.ts` to `vite.config.ts` through `solidStart()`.
4141

42-
If you are upgrading an existing app, start with the [migration guide](/v2/solid-start/migrating-from-v1).
42+
If you are upgrading an existing app, start with the [migration guide](/solid-start/v2/migrating-from-v1).

src/routes/solid-start/v2/(1)advanced/(4)serialization.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ Because these values are transferred directly, this can yield smaller payloads f
5656

5757
## Related
5858

59-
- [Data fetching](/v2/solid-start/building-your-application/data-fetching)
60-
- [Data mutation](/v2/solid-start/building-your-application/data-mutation)
59+
- [Data fetching](/solid-start/v2/building-your-application/data-fetching)
60+
- [Data mutation](/solid-start/v2/building-your-application/data-mutation)

src/routes/solid-start/v2/(1)getting-started.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ For example:
7373
- `src/routes/about.tsx` becomes `/about`
7474
- `src/routes/api/ping.ts` can expose `/api/ping`
7575

76-
Read [Routing](/v2/solid-start/building-your-application/routing) next if you want the exact filename conventions.
76+
Read [Routing](/solid-start/v2/building-your-application/routing) next if you want the exact filename conventions.
7777

7878
## Type support
7979

@@ -88,4 +88,4 @@ Add it to your TypeScript config if your template has not already done so.
8888
}
8989
```
9090

91-
If you are migrating an existing app instead of creating a new one, continue with [Migrating from v1](/v2/solid-start/migrating-from-v1).
91+
If you are migrating an existing app instead of creating a new one, continue with [Migrating from v1](/solid-start/v2/migrating-from-v1).

src/routes/solid-start/v2/reference/client/client-only.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ export default function Page() {
7272

7373
## Related
7474

75-
- [Routing](/v2/solid-start/building-your-application/routing)
75+
- [Routing](/solid-start/v2/building-your-application/routing)

src/routes/solid-start/v2/reference/routing/file-routes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ export default function App() {
6060

6161
## Related
6262

63-
- [Routing](/v2/solid-start/building-your-application/routing)
63+
- [Routing](/solid-start/v2/building-your-application/routing)

src/routes/solid-start/v2/reference/server/create-middleware.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ export default createMiddleware([
6565

6666
## Related
6767

68-
- [API routes](/v2/solid-start/building-your-application/api-routes)
68+
- [API routes](/solid-start/v2/building-your-application/api-routes)

src/routes/solid-start/v2/reference/server/get-server-function-meta.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ const meta = getServerFunctionMeta();
5555

5656
## Related
5757

58-
- [`"use server"`](/v2/solid-start/reference/server/use-server)
58+
- [`"use server"`](/solid-start/v2/reference/server/use-server)

0 commit comments

Comments
 (0)