Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions solid-start-v1/bare/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions solid-start-v1/basic/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions solid-start-v1/with-auth/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from "@solidjs/start/config";
import tailwindcss from "@tailwindcss/vite";

export default defineConfig({
ssr: true, // false for client-side rendering only
server: { preset: "" }, // your deployment
vite: { plugins: [tailwindcss()] }
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions solid-start-v1/with-authjs/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
ssr: true,
});
7 changes: 7 additions & 0 deletions solid-start-v1/with-drizzle/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
vite: {
ssr: { external: ["drizzle-orm"] },
},
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions solid-start-v1/with-mdx/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineConfig } from "@solidjs/start/config";
/* @ts-ignore */
import pkg from "@vinxi/plugin-mdx";

const { default: mdx } = pkg;
export default defineConfig({
extensions: ["mdx", "md"],
vite: {
plugins: [
mdx.withImports({})({
jsx: true,
jsxImportSource: "solid-js",
providerImportSource: "solid-mdx"
})
]
}
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions solid-start-v1/with-prisma/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
vite: {
ssr: { external: ["@prisma/client"] }
}
});
16 changes: 16 additions & 0 deletions solid-start-v1/with-solid-styled/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineConfig } from "@solidjs/start/config";
import type { PluginOption } from "vite";
import solidStyled from "unplugin-solid-styled";

export default defineConfig({
vite: {
plugins: [
solidStyled.vite({
filter: {
include: "src/**/*.tsx",
exclude: "node_modules/**/*.{ts,js}"
}
}) as PluginOption
]
}
});
41 changes: 41 additions & 0 deletions solid-start-v1/with-solidbase/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { defineConfig } from "@solidjs/start/config";
import { withSolidBase } from "@kobalte/solidbase/config";

export default defineConfig(withSolidBase(
// SolidStart config
{
server: {
prerender: {
crawlLinks: true
}
}
},
// SolidBase config
{
title: "SolidBase",
titleTemplate: ":title - SolidBase",
description: "Fully featured, fully customisable static site generation for SolidStart",
themeConfig: {
sidebar: {
"/": {
items: [
{
title: "Overview",
collapsed: false,
items: [
{
title: "Home",
link: "/"
},
{
title: "About",
link: "/about"
}
]
}
]
}
}
}
}
));
5 changes: 5 additions & 0 deletions solid-start-v1/with-strict-csp/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
middleware: "src/middleware.ts"
});
8 changes: 8 additions & 0 deletions solid-start-v1/with-tailwindcss/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from "@solidjs/start/config";
import tailwindcss from "@tailwindcss/vite";

export default defineConfig({
vite: {
plugins: [tailwindcss()]
}
});
9 changes: 9 additions & 0 deletions solid-start-v1/with-tanstack-router/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from '@solidjs/start/config';
import { tanstackRouter } from '@tanstack/router-plugin/vite';

export default defineConfig({
vite: {
// @ts-expect-error Vite 7 plugin types
plugins: [tanstackRouter({ target: 'solid' })],
},
});
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions solid-start-v1/with-trpc/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({});
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions solid-start-v1/with-unocss/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineConfig } from "@solidjs/start/config";
import UnoCSS from "unocss/vite";
import presetWind4 from "@unocss/preset-wind4";

export default defineConfig({
vite: {
plugins: [
UnoCSS({
presets: [presetWind4()]
})
]
}
});
File renamed without changes.
3 changes: 3 additions & 0 deletions solid-start-v1/with-vitest/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({});
Binary file added solid-start-v2/.DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions solid-start-v2/bare/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.env
!.env.example
.vinxi/
node_modules/
.output/
dist/
.nitro/
30 changes: 30 additions & 0 deletions solid-start-v2/bare/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SolidStart

Everything you need to build a Solid project, powered by [`solid-start`](https://start.solidjs.com);

## Creating a project

```bash
# create a new project in the current directory
npm init solid@latest

# create a new project in my-app
npm init solid@latest my-app
```

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

```bash
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
```

## Building

Solid apps are built with _presets_, which optimise your project for deployment to different environments.

By default, `npm run build` will generate a Node app that you can run with `npm start`. To use a different preset, add it to the `devDependencies` in `package.json` and specify in your `app.config.js`.
20 changes: 20 additions & 0 deletions solid-start-v2/bare/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "example-bare",
"type": "module",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"start": "vite start",
"preview": "vite preview"
},
"dependencies": {
"@solidjs/start": "2.0.0-alpha.2",
"solid-js": "^1.9.5",
"vite": "^7.0.0",
"@solidjs/vite-plugin-nitro-2": "^0.1.0"
},
"engines": {
"node": ">=22"
},
"devDependencies": {}
}
Loading