Skip to content

Commit 5f0da11

Browse files
committed
Merge branch 'main' into devinxi
2 parents e3bcf8f + 5568611 commit 5f0da11

71 files changed

Lines changed: 1428 additions & 445 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/soft-beans-take.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/start": minor
3+
---
4+
5+
adds the option to change the public directory to something other than the default "public"

.github/workflows/compliance.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

examples/bare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"@solidjs/start": "^1.1.0",
1111
"solid-js": "^1.9.5",
12-
"vinxi": "^0.5.3"
12+
"vinxi": "^0.5.7"
1313
},
1414
"engines": {
1515
"node": ">=22"

examples/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@solidjs/router": "^0.15.0",
1313
"@solidjs/start": "^1.1.0",
1414
"solid-js": "^1.9.5",
15-
"vinxi": "^0.5.3"
15+
"vinxi": "^0.5.7"
1616
},
1717
"engines": {
1818
"node": ">=22"

examples/experiments/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@solidjs/router": "^0.15.0",
1212
"@solidjs/start": "^1.1.0",
1313
"solid-js": "^1.9.5",
14-
"vinxi": "^0.5.3"
14+
"vinxi": "^0.5.7"
1515
},
1616
"engines": {
1717
"node": ">=22"

examples/notes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"solid-js": "^1.9.5",
1414
"marked": "^12.0.1",
1515
"unstorage": "1.10.2",
16-
"vinxi": "^0.5.3"
16+
"vinxi": "^0.5.7"
1717
},
1818
"engines": {
1919
"node": ">=22"

examples/with-auth/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SESSION_SECRET = myverylonguniquesecretthatkeepsthingssafe
2+
DISCORD_ID =
3+
DISCORD_SECRET =

examples/with-auth/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,31 @@ npm run dev
2323
npm run dev -- --open
2424
```
2525

26+
## Env Vars
27+
28+
Rename the example file and add your Discord OAuth credentials:
29+
30+
```bash
31+
# rename example environment file
32+
cp .env.example .env
33+
```
34+
35+
Edit `.env` with your values:
36+
37+
```dotenv
38+
DISCORD_ID=your-discord-client-id
39+
DISCORD_SECRET=your-discord-client-secret
40+
```
41+
42+
1. Create an application at [https://discord.com/developers/applications](https://discord.com/developers/applications) to obtain your client ID and secret.
43+
2. In the app's **OAuth2 → Redirects** settings, add:
44+
45+
```text
46+
http://localhost:3000/api/oauth/discord
47+
```
48+
49+
For more details on the [start-oauth](https://github.com/thomasbuilds/start-oauth) integration, see the repository.
50+
2651
## Building
2752

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

examples/with-auth/app.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
import { defineConfig } from "@solidjs/start/config";
2+
import tailwindcss from "@tailwindcss/vite";
23

3-
export default defineConfig({});
4+
export default defineConfig({
5+
vite: { plugins: [tailwindcss()] }
6+
});

examples/with-auth/package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66
"build": "vinxi build",
77
"start": "vinxi start"
88
},
9-
"devDependencies": {
10-
"@types/node": "^20.12.7"
11-
},
129
"dependencies": {
13-
"@solidjs/router": "^0.15.0",
14-
"@solidjs/start": "^1.1.0",
15-
"solid-js": "^1.9.5",
16-
"unstorage": "1.10.2",
17-
"vinxi": "^0.5.3"
10+
"@solidjs/router": "^0.15.3",
11+
"@solidjs/start": "^1.1.7",
12+
"solid-js": "^1.9.7",
13+
"start-oauth": "^1.2.4",
14+
"unstorage": "1.16.1",
15+
"vinxi": "^0.5.8"
16+
},
17+
"devDependencies": {
18+
"@tailwindcss/vite": "^4.1.11",
19+
"tailwindcss": "^4.1.11"
1820
},
1921
"engines": {
2022
"node": ">=22"

0 commit comments

Comments
 (0)