Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
971b599
feat: add migrating to v2 solid-start guide
brenelz Dec 18, 2025
9ceca37
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 23, 2025
f37d42f
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 23, 2025
244886c
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 23, 2025
f1116e8
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 23, 2025
b119927
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 23, 2025
23a6824
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 28, 2025
34941cd
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 28, 2025
0060dd1
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 28, 2025
9f74d66
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 28, 2025
5a65818
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 30, 2025
e5b7874
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 30, 2025
ca0a85e
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 30, 2025
8f4a7ad
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 30, 2025
3f895d6
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 30, 2025
76657cb
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 30, 2025
a31f816
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Dec 30, 2025
b074eef
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 6, 2026
2c8529f
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 6, 2026
93291e6
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 6, 2026
eb5d319
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 6, 2026
7150507
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 6, 2026
3c5ed9e
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 6, 2026
25cf373
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 6, 2026
b9817b8
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 6, 2026
66d925e
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 6, 2026
f16d29d
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 6, 2026
919fc56
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 7, 2026
f8d6c3d
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 7, 2026
c5d333d
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 9, 2026
e5ff98b
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Jan 24, 2026
12d5871
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 3, 2026
5c09e36
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 3, 2026
d29b1be
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 3, 2026
0e3c1b5
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 3, 2026
088f8e5
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 3, 2026
5954e77
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 3, 2026
e728352
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 3, 2026
75fe4b8
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 5, 2026
8d02f95
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 5, 2026
9773ddd
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 11, 2026
24cfd36
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 17, 2026
c369c70
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 17, 2026
41c31ba
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 17, 2026
e1c15ec
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 17, 2026
e5af4aa
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Feb 20, 2026
bc89abd
Apply suggestion from @amirhhashemi
birkskyum Feb 28, 2026
0520cff
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Mar 3, 2026
92829f8
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Mar 3, 2026
6f19160
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Mar 3, 2026
d31c94f
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Mar 3, 2026
7216690
update the migration guides to SolidStart v2 (#1435)
atilafassina Mar 4, 2026
001d5f2
Merge branch 'main' into feat/migrating-to-v2-guide
kodiakhq[bot] Mar 4, 2026
1b7f3cf
fix typo
atilafassina Mar 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/routes/solid-start/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"pages": [
"index.mdx",
"getting-started.mdx",
"migrating-from-v1.mdx",
"building-your-application",
"advanced",
"guides"
Expand Down
99 changes: 99 additions & 0 deletions src/routes/solid-start/migrating-from-v1.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
---
title: Migrating from v1
use_cases: >-
existing project, migration, upgrade
tags:
- setup
- installation
- starter
- template
- quickstart
- init
version: '2.0'
description: >-
Migrate your SolidStart project from v1 to v2.
---

This is a migration guide of how to upgrade your v1 SolidStart app to our new v2 version.

Please note that some third-party packages may not be compatible with v2 yet.

## Migration steps

### Update dependencies

@solidjs/start@2.0.0-alpha.2 @solidjs/vite-plugin-nitro-2 vite@7
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the previous committed suggestion trimmed the code block tags due to the suggestion block also using three backticks

Suggested change
@solidjs/start@2.0.0-alpha.2 @solidjs/vite-plugin-nitro-2 vite@7
```package-install
@solidjs/start@2.0.0-alpha.2 @solidjs/vite-plugin-nitro-2 vite@7
```


```package-remove
vinxi
```

### Configuration files

- Remove `app.config.ts`
- Create `vite.config.ts`

```tsx title="vite.config.ts"
import { solidStart } from "@solidjs/start/config";
import { defineConfig } from "vite";
import { nitroV2Plugin } from "@solidjs/vite-plugin-nitro-2";

export default defineConfig(() => {
return {
plugins: [
solidStart({
middleware: "./src/middleware/index.ts",
}),
nitroV2Plugin(),
],
};
});
```

Compile-time environment variables are now handled by Vite's environment API.

```tsx title="vite.config.ts"
// ...
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");

return {
// ...
environments: {
ssr: {
define: {
"process.env.DATABASE_URL": JSON.stringify(env.DATABASE_URL),
},
},
},
};
});

```

Update the build/dev commands to use native Vite instead of vinxi.

```json
"scripts": {
"dev": "vite dev",
"build": "vite build",
"start": "vite preview"
}
```


### Environment types

Only the `types` entry is new in v2. Everything else can remain unchanged.

```json
"compilerOptions": {
"types": ["@solidjs/start/env"]
}
```


## Server runtime helpers

- Replace all imports from `vinxi/http` with `@solidjs/start/http`
- Optional: update the middleware syntax to the newer [H3 syntax](https://h3.dev/guide/basics/middleware)