Skip to content

Commit 08bd158

Browse files
committed
Add example env. Remove unused env vars.
1 parent 5e60ca8 commit 08bd158

6 files changed

Lines changed: 27 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- [2026-01-14] [Add example env. Remove unused env vars.](https://github.com/rubriclab/create-rubric-app/commit/8348de4297144140b479d445f6901ecb9281364d)
12
- [2026-01-14] [Add missing Prisma PG adapter dependency](https://github.com/rubriclab/create-rubric-app/commit/f58a97ed9786f90bbfe7a8107671801e79165d42)
23
- [2026-01-14] [Add template arg to CLI](https://github.com/rubriclab/create-rubric-app/commit/b3de12e510b02a839f5d833f11caed7ede2bda02)
34
- [2026-01-09] [Reconcile changelog](https://github.com/rubriclab/create-rubric-app/commit/65c2411412e1873ba12b0b45ff7e9c36babf3407)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
"simple-git-hooks": {
3333
"post-commit": "bun x @rubriclab/package post-commit"
3434
},
35-
"version": "1.6.35"
35+
"version": "1.6.36"
3636
}

templates/react/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
DATABASE_URL="postgres://postgres:postgres@localhost:5432/app"
2+
OPENAI_API_KEY="sk-proj-abc" # https://platform.openai.com/api-keys
3+
REDIS_URL="redis://localhost:6379"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"[json]": {
3+
"editor.defaultFormatter": "biomejs.biome"
4+
},
5+
"[prisma]": {
6+
"editor.defaultFormatter": "Prisma.prisma"
7+
},
8+
"[typescript]": {
9+
"editor.defaultFormatter": "biomejs.biome"
10+
},
11+
"[typescriptreact]": {
12+
"editor.defaultFormatter": "biomejs.biome"
13+
},
14+
"editor.codeActionsOnSave": {
15+
"source.fixAll.biome": "explicit",
16+
"source.organizeImports.biome": "explicit"
17+
},
18+
"editor.defaultFormatter": "biomejs.biome",
19+
"editor.formatOnSave": true,
20+
"editor.formatOnType": true,
21+
"npm.packageManager": "bun"
22+
}

templates/react/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ Create a `.env` file with:
3333
```sh
3434
DATABASE_URL=postgres://postgres:postgres@localhost:5432/app
3535
REDIS_URL=redis://localhost:6379
36-
GITHUB_CLIENT_ID=your_github_client_id
37-
GITHUB_CLIENT_SECRET=your_github_client_secret
3836
OPENAI_API_KEY=your_openai_api_key
3937
PUBLIC_AUTH_URL=http://localhost:3000
4038
```

templates/react/src/lib/env.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ export default createEnv({
99
runtimeEnv: process.env,
1010
server: {
1111
DATABASE_URL: z.string().default('postgres://postgres:postgres@localhost:5432/app'),
12-
GITHUB_CLIENT_ID: z.string().min(1),
13-
GITHUB_CLIENT_SECRET: z.string().min(1),
1412
NODE_ENV: z.enum(['development', 'production', 'test']).default('development'),
1513
OPENAI_API_KEY: z.string().min(1),
1614
REDIS_URL: z.string().default('redis://localhost:6379')

0 commit comments

Comments
 (0)