> Canonical URL: https://codingcat.dev/course/intro-to-solid-js/lesson/solidstart

# SolidStart | Intro to SolidJS | CodingCat.dev Course

[🧶 Intro to SolidJS](/course/intro-to-solid-js)Section 3.1 · Lesson 4 of 4[![](/logos/tags/solidjs-symbol-light.svg)![](/logos/tags/solidjs-symbol-dark.svg)SolidJS](/topic/solidjs)[![](/logos/tags/netlify-symbol-light.svg)![](/logos/tags/netlify-symbol-dark.svg)Netlify](/topic/netlify)[![](/logos/tags/vite-symbol-light.svg)![](/logos/tags/vite-symbol-dark.svg)Vite](/topic/vite)[![](/logos/tags/html-symbol-light.svg)![](/logos/tags/html-symbol-dark.svg)HTML](/topic/html)[![](/logos/tags/react-symbol-light.svg)![](/logos/tags/react-symbol-dark.svg)React](/topic/react)[← Prev Lesson](/course/intro-to-solid-js/lesson/deployment)

# SolidStart

![CodingCat.dev tutorial cover image](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/3e2160970ca27be37040d051f5c8cf4badfb3047-1920x1080.png?w=1920&q=82&fit=max&auto=format)Lesson 4 / 4Course Lessons Outline▾1Getting Started
- [1.1Fundamentals](/course/intro-to-solid-js/lesson/fundamentals)

2Basics
- [2.1Solid Basics](/course/intro-to-solid-js/lesson/basics)
- [2.2Deployment](/course/intro-to-solid-js/lesson/deployment)

3SolidStart
- [3.1SolidStart](/course/intro-to-solid-js/lesson/solidstart)

## Project Setup

Change your `dev`, `build`, and `start` scripts to use the `solid-start` command.

Copied! 🐾

```
{
	"scripts": {
		"dev": "solid-start dev",
		"build": "solid-start build",
		"start": "solid-start start"
	}
}
```

### Vite Configuration

In `vite.config.js`, remove the `solidPlugin` from `vite-plugin-solid` and replace it with `solid` from `solid-start/vite`.

Copied! 🐾📄 vite.config.jsjsx

```
import { defineConfig } from 'vite';
import solid from 'solid-start/vite';
// import solidPlugin from "vite-plugin-solid"

export default defineConfig({
	plugins: [solid()]
	// plugins: [solidPlugin()]
});
```

### Client and Server Entry

SolidStart projects are organized in a similar way to Remix or projects using React Server Components. One file is used as an entry point for the application to start in the client and another file is used as an entry point for the application to start on the server. Create files called `entry-client.jsx` and `entry-server.jsx` for each.

Copied! 🐾

```
echo > src/entry-client.jsx
echo > src/entry-server.jsx
```

`entry-client.jsx` is where your app starts in the browser. `` wraps our application root and includes `Context` providers for routing and meta data. `mount` either calls `render` or `hydrate` depending on the configuration.

Copied! 🐾📄 src/entry-client.jsxjsx

```
import { mount, StartClient } from 'solid-start/entry-client';

mount(() => , document);
```

`entry-server.jsx` is where your app starts on the server. `` wraps our application root and also includes `Context` providers for routing and meta data. It accepts an `event` and passes it to the `renderAsync(codeFn, options)` middleware which then calls Solid's `renderToStringAsync` under the hood to asynchronously render the application. This responds when the page has been fully loaded and rendered.

Copied! 🐾📄 src/entry-server.jsxjsx

```
import { StartServer, createHandler, renderAsync } from 'solid-start/entry-server';

export default createHandler(renderAsync((event) => ));
```

All `Suspense` and data loading on initial load happens on the server. `Event` objects that originate from our underlying runtime are passed with a `PageEvent` object containing the following information:

- `request` - The current request
- `responseHeaders` - The headers being built for the response
- `clientAddress` - The IP address of the remote client
- `locals` - An object for storing local data that lives the life of the request, like user or authentication data
- `setStatusCode(code)` - Sets the status code
- `getStatusCode()` - Returns the current status code
- `fetch(url, init)` - Fetch API that can call API helpers directly on the server

### Root

`root.jsx` defines the document rendered by your application. The `Root` component from `root.jsx` is an isomorphic entry into your application, structured like an HTML document but with capitalized components, including core elements like `Suspense` and `ErrorBoundary` for managing loading and error states.

Notably, it provides a space for defining ``, positioning `` high up for effective error catching, and inserting global Context Providers and universal components, such as top-level navigation, into the ``.

Copied! 🐾📄 src/root.jsxjsx

```
// @refresh reload
import { Suspense } from 'solid-js';
import { Body, ErrorBoundary, FileRoutes, Head, Html, Meta, Routes, Scripts } from 'solid-start';
import './root.css';

export default function Root() {
	return (

	);
}
```

### Start Development Server

Run your development server with the `solid-start dev` command.

Copied! 🐾

```
pnpm dev
# npm run dev
```

Open [localhost:3000](http://localhost:3000/).

## Deployment Adapters

SolidStart includes various adapters for deploying your project to specific hosting providers like Netlify or Vercel.

### Configure Netlify Adapter

We'll use the Netlify adapter, so install `solid-start-netlify` with `pnpm` or `npm`.

Copied! 🐾

```
pnpm add -D solid-start-netlify
# npm i -D solid-start-netlify
```

Our `build` command will be `pnpm build` and our publish directory will now be called `netlify`.

Copied! 🐾📄 netlify.tomltoml

```
[build]
  command = "pnpm build"
  publish = "netlify"
```

Return to `vite.config.js` and import `netlify` from `solid-start-netlify`. Set it to `adapter` and specify `true` for the `edge` configuration.

Copied! 🐾📄 vite.config.jsjsx

```
import { defineConfig } from 'vite';
import solid from 'solid-start/vite';
import netlify from 'solid-start-netlify';

export default defineConfig({
	plugins: [
		solid({
			adapter: netlify({ edge: true })
		})
	]
});
```

Push your new changes to GitHub and your Netlify website should rebuild and update automatically.

✏️ Visual Architecture Diagram

## how this course connects together.

Follow AJ through the layered stack topology from input contract to production output.

Let’s build it!✏️ Architecture Diagram: Intro to SolidJS: SolidStartLAYERED SYSTEM STACKARCHITECTURE DIAGRAM[Diagram Walkthrough]Content-driven layered-stack diagram for Intro to SolidJS: SolidStart: SolidStart -> Intro to SolidJS -> Verified Production Artifact.AAA Contrast Verified

## related deep dives.

[View All&rarr;](/blog)[![HyperFrames: Turning HTML & Canvas into 60fps Video for AI Agents](https://cdn.sanity.io/images/hfh83o0w/production/d2e98ad8352ec6a3edba735e8fbf8cda6151201f-1376x768.png?w=1376&q=82&fit=max&auto=format)](/course/hyperframes-html-to-video-agents)November 4, 2026[![](/logos/tags/typescript-symbol-light.svg)![](/logos/tags/typescript-symbol-dark.svg)TypeScript](/topic/typescript)[#AI & Agents](/topic/ai)[![](/logos/tags/react-symbol-light.svg)![](/logos/tags/react-symbol-dark.svg)React](/topic/react)

### [HyperFrames: Turning HTML & Canvas into 60fps Video for AI Agents](/course/hyperframes-html-to-video-agents)

Learn how HeyGen's open-source HyperFrames compiler turns self-contained HTML, CSS, and Canvas compositions into deterministic 1080p60 videos built by AI agents.

[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)[![Remotion Skills: Teaching AI Agents to Build Videos the Right Way](https://cdn.sanity.io/images/hfh83o0w/production/1641179c642070c4916adc25ed918f587fe9a056-1376x768.png?w=1376&q=82&fit=max&auto=format)](/course/remotion-skills-ai-agents)November 4, 2026[![](/logos/tags/typescript-symbol-light.svg)![](/logos/tags/typescript-symbol-dark.svg)TypeScript](/topic/typescript)[#AI & Agents](/topic/ai)[![](/logos/tags/react-symbol-light.svg)![](/logos/tags/react-symbol-dark.svg)React](/topic/react)

### [Remotion Skills: Teaching AI Agents to Build Videos the Right Way](/course/remotion-skills-ai-agents)

Install and customize remotion-dev/skills so Claude Code, Cursor, and Google Antigravity write deterministic, well-paced React video compositions on the first try.

[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)[Course Outline](/course/intro-to-solid-js)

## Intro to SolidJS

4/41

### Getting Started

- [1.1Fundamentals](/course/intro-to-solid-js/lesson/fundamentals)

2

### Basics

- [2.1Solid Basics](/course/intro-to-solid-js/lesson/basics)
- [2.2Deployment](/course/intro-to-solid-js/lesson/deployment)

3

### SolidStart

- [3.1SolidStart▶](/course/intro-to-solid-js/lesson/solidstart)

@CodingCatDev on YouTube62.5K / 100K

Subscribe for new course lessons and architecture deep dives every week.

[Subscribe for New Lessons →](https://www.youtube.com/@codingcatdev?sub_confirmation=1)