Skip to content

Commit ccd6c4b

Browse files
committed
fix(ci): add BETTER_AUTH_SECRET for projects example build
Copy .env.example to .env during CI build to provide required BETTER_AUTH_SECRET that better-auth now enforces.
1 parent e24b2fa commit ccd6c4b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,5 @@ jobs:
8989
- name: Build Starter Site
9090
run: |
9191
cd examples/react/projects
92+
cp .env.example .env
9293
pnpm build

examples/react/projects/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
DATABASE_URL=postgresql://postgres:password@localhost:54321/projects
44

55
# Create a secret for better-auth
6-
BETTER_AUTH_SECRET=
6+
BETTER_AUTH_SECRET=example-secret-for-development-only

0 commit comments

Comments
 (0)