spfn 0.3.0-beta.6 → 0.3.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,8 @@ src/
32
32
  generated/ codegen output (route map) — do not edit by hand
33
33
  .env.local Next.js runtime env (gitignored)
34
34
  .env.server server secrets (gitignored)
35
- .env.example committed reference — keys only, placeholder values
35
+ .env.local.example committed reference — the Next.js keys, placeholder values
36
+ .env.server.example committed reference — the backend keys, placeholder values
36
37
  .spfnrc.ts codegen configuration
37
38
  spfn.config.js deployment config
38
39
  ```
@@ -54,6 +55,12 @@ A feature is a vertical slice: `Entity` (Drizzle table) → `Repository` →
54
55
 
55
56
  ## Environment & secrets
56
57
 
58
+ The env reference is split by consumer: `.env.local.example` lists what the Next.js
59
+ process reads (`SPFN_API_URL`, `NEXT_PUBLIC_*`, the auth session secret), and
60
+ `.env.server.example` lists what only the backend reads (`DATABASE_URL`, `CACHE_URL`,
61
+ OAuth secrets). Which file a key belongs in follows who consumes it, not whether it
62
+ is secret.
63
+
57
64
  `.env.server` holds backend-only secrets and is gitignored — Next.js never loads it.
58
65
  For a managed workflow use `spfn secret`: local values go to the OS keychain (only a
59
66
  `secret:keychain:` reference lands in `.env.server`), and deployed secrets are stored
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spfn",
3
- "version": "0.3.0-beta.6",
3
+ "version": "0.3.0-beta.8",
4
4
  "description": "Scaffold a full-stack TypeScript backend onto a Next.js app built with an AI coding agent: auth, database, typed routes and codegen, one fixed vertical slice per feature",
5
5
  "type": "module",
6
6
  "bin": {